-
AuthorPosts
-
January 25, 2017 at 4:53 pm #738470
Support,
I was hoping you could help me with adding the Layout Builder to the “Popup Maker” plugin. I can’t seem to get it to work. I have added the following to my functions.php:
function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta[‘page’][] = ‘popup’; /*instead add the name of the custom post type here*/ } } return $metabox; }
Here is the post type: http://imgur.com/a/xGgAK
Am I doing something wrong? Thanks in advanced!
January 28, 2017 at 8:43 pm #739761Hey Eagles1227,
I noticed that the apostrophe on:
$meta[‘page’][] = ‘popup’;
is different from the other apostrophes, can you try to change that.
Best regards,
NikkoJanuary 31, 2017 at 12:08 am #740446Interesting! That did the trick, oddly enough; I never knew that it could make that big of a difference. Thanks so much, Nikko!
February 2, 2017 at 10:51 pm #742064Hi,
Glad we could help and thanks for using Enfold :)
Best regards,
NikkoFebruary 15, 2017 at 11:09 pm #747710Hi Nikko,
Here is another issue: when the Layout Builder is enabled, the popup maker is displayed at the bottom on the page. I have reach out to to the plugin support, and they replied with the following:
I am not familiar with how they add the builder content to the page. Do you know if they are using the_content filters? If so then we may be able to simply apply the same filters to pum_the_content. We don’t use the_content as peoples popups would end up with author boxes and ads and anything else that attaches itself via that filter.
Also if you have a contact with their support that would like to work with me to get this solved with 100% built in compatibility that would be awesome as well. We always strive to do so when available.
I did a search on Enfold’s forums and it seems like a lot of users use a “popup” of some sort but I couldn’t find one that’s compatible with the theme. Any insight?
Thanks!!
February 21, 2017 at 7:44 am #749771Hi!
How can you trigger the popup maker? Is it from a button, or does it display automatically after a few seconds? The popup content displays at the bottom because it is outside the actual “pum-content” container. We can use jQuery to move it inside the mentioned container but I’m not sure if the popup will still work properly. Edit the color section, use “pum_section” as the Section ID, then insert this snippet in the functions.php file:
function ava_custom_script_mod(){ ?> <script> (function($){ function a() { $('#pum_section').appendTo('.pum-content'); } a(); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_mod');
Regards,
IsmaelMarch 3, 2017 at 7:09 pm #755278Hi Ismael,
Thanks for the help, but unfortunately, that just removes the color section as a whole. It is triggered by clicking on a “button” (Whatever I set the link to). Maybe you know of another popup plugin that works with Enfold’s Advanced Layout Builder? Thanks!
- This reply was modified 7 years, 8 months ago by Eagles1227.
March 6, 2017 at 4:35 am #756118Hey!
Could you please re-create a test page with the button? I can’t find it anywhere in the home page. And please tell the the plugin author that the content of the advance layout builder is rendered through the template-builder.php file.
Regards,
IsmaelMarch 6, 2017 at 6:16 am #756161See Private.
March 7, 2017 at 4:58 am #756721 -
AuthorPosts
- You must be logged in to reply to this topic.