Tagged: 

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

    #1132371

    Anyone here?

    #1133195

    Hi,

    Sorry for the delay.

    We didn’t know that you already opened a new thread.

    // https://kriesi.at/support/topic/avia-layout-builder-not-working-with-plugin-popup-maker/#post-1133191

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

    #1138363
    This reply has been marked as private.
    #1138365

    Provided 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

    #1138770

    Hi,

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

    #1144057

    Can 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.

    #1144823

    Hi,

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

    #1144889

    That worked, thank you!

    #1145107

    Hi robnelson4,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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