Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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!

    #739761

    Hey Eagles1227,

    I noticed that the apostrophe on:

    $meta[‘page’][] = ‘popup’;

    is different from the other apostrophes, can you try to change that.

    Best regards,
    Nikko

    #740446

    Interesting! That did the trick, oddly enough; I never knew that it could make that big of a difference. Thanks so much, Nikko!

    #742064

    Hi,

    Glad we could help and thanks for using Enfold :)

    Best regards,
    Nikko

    #747710

    Hi 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!!

    #749771

    Hi!

    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,
    Ismael

    #755278

    Hi 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, 9 months ago by Eagles1227.
    #756118

    Hey!

    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,
    Ismael

    #756161

    See Private.

    #756721

    Hey!

    Thank you for the update. I added a unique Section ID to the popup maker section then modified the code in the functions.php file. Please remove browser cache before checking the page.

    Regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.