-
AuthorPosts
-
July 2, 2019 at 12:16 pm #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 hereand 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
July 5, 2019 at 9:06 am #1115969Hey 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,
IsmaelJuly 9, 2019 at 11:07 am #1117008Hi 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
- This reply was modified 5 years, 5 months ago by Artiarturro_66.
July 10, 2019 at 9:22 am #1117342Hi,
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,
IsmaelJuly 10, 2019 at 10:11 am #1117356Hi 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
July 11, 2019 at 10:46 am #1117746 -
AuthorPosts
- You must be logged in to reply to this topic.