Tagged: popup maker
-
AuthorPosts
-
August 29, 2019 at 9:53 pm #1132095
Using this code
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);
I managed to make the advanced layout editor button appear when editing a popup in Popup Maker.
But then it does not work, the popup is empty also if i build a layout.
I tried also with this older code that i found here on the forums:
`function add_builder_to_posttype($metabox)
{
foreach($metabox as &$meta)
{
if($meta[‘id’] == ‘avia_builder’ || $meta[‘id’] == ‘layout’)
{
$meta[‘page’][] = ‘popup’; /*Using ‘ as quotes*/
}
}return $metabox;
}But this does nothing.. does not even show the blue advanced editor button
So? What should i do?
August 30, 2019 at 4:49 pm #1132371Anyone here?
September 3, 2019 at 5:23 am #1133195Hi,
Sorry for the delay.
We didn’t know that you already opened a new thread.
Provide the login details in the private field so that we can see what’s going on with the plugin. And for additional help, please contact the plugin author.
Best regards,
IsmaelSeptember 14, 2019 at 5:38 pm #1138363This reply has been marked as private.September 14, 2019 at 5:39 pm #1138365Provided private info. Right now the popup is set to open a new page, you can try and build a popup and put inside it the event calendar enfold widget/element.. it just does not work
September 16, 2019 at 11:33 am #1138770Hi,
Thank you for the update.
We added the “avf_alb_exec_sc_only” filter in the functions.php file to allow the execution of shortcodes outside the builder. We also created a dummy popup that will display on load after 500ms. You should see 4 consecutive text blocks inside that popup.
Best regards,
IsmaelOctober 2, 2019 at 6:08 am #1144057Can you provide the code that should go in functions.php so others can get this to work as well? This is a popular plugin that I’ve noticed isn’t working anymore on my site either. Thanks.
October 4, 2019 at 4:04 am #1144823Hi,
Thank you for the inquiry.
The plugin should work properly if you’re just using the default editor. If you want to use the advance layout builder for the popup post type, add this snippet in the functions.php file.
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); function my_custom_exec_sc_only( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake ) { /** * Return if true - Enfold already requested an execution because of preview in backend * Otherwise this is likley to be false. */ if( true === $exec_sc_only ) { return $exec_sc_only; } return true; /** * Make your checks here - make sure to return boolean true if you want to force execution * * Following is an example to allow it for all ajax calls. */ if( defined( 'DOING_AJAX' ) && DOING_AJAX ) { return true; } return $exec_sc_only; } add_filter( 'avf_alb_exec_sc_only', 'my_custom_exec_sc_only', 10, 6 );
Best regards,
IsmaelOctober 4, 2019 at 7:07 am #1144889That worked, thank you!
October 4, 2019 at 9:13 pm #1145107Hi robnelson4,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.