Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1115148

    Hi,
    it would be great if you could please help me with this:

    I want to use the Advanced Layout Builder to build a popup (with the Popup Maker Plugin).
    I followed the instructions here

    and here

    So I copied the code

    function add_builder_to_posttype($metabox)
    {
    	foreach($metabox as &$meta)
    	{
    		if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
    		{
    			$meta['page'][] = 'popup';
    		}
    	}
    
    	return $metabox;
    }

    into my child theme’s functions.php but with no luck – ALB does not show up. What am I missing?

    Thanks in advance

    #1115969

    Hey Artiarturro_66,

    Thank you for using Enfold.

    That filter should be replaced with this one.

    function avf_alb_supported_post_types_mod( array $supported_post_types )
    {
      $supported_post_types[] = ''popup'';
      return $supported_post_types;
    }
    add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);

    Let us know if it helps.

    More info: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type

    Best regards,
    Ismael

    #1117008

    Hi Ismael,

    thank you for your reply. The Advanced Layout Builder is now showing up on the Popup Maker page. I had to correct the quotation marks in your code – replacing the two
    ''
    with
    "
    but unfortunately the popup is always empty.
    Do you have any idea what is preventing the content to be shown?

    Thanks in advance

    #1117342

    Hi,

    Have you tried this one?

    // https://kriesi.at/support/topic/layout-builder-added-to-popup-maker/#post-749771

    The content is probably rendered outside the color section container as described in the previous thread. You have to add the script to move the popup content inside the container.

    Best regards,
    Ismael

    #1117356

    Hi Ismael,

    I tried that – unfortunately it did not help. As far as I can see the content is not shown at all. Even not on the bottom of the page.

    Artiarturo_66

    #1117746

    Hi,

    Thank you for the update.

    We can’t find the content of the advance layout builder anywhere in the page. Unfortunately, we are not sure how the plugin generates its content. Please contact the plugin author for additional help.

    Best regards,
    Ismael

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