Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1022295

    Hi,
    I just installed the Events Calendar PRO plugin by Modern Tribe:

    Events Calendar PRO

    How do I activate Advanced Layout Builder in events?

    Thankyou
    Alessio

    • This topic was modified 6 years, 2 months ago by aledef.
    #1022664

    Hey aledef,

    Try adding this code at the bottom of your functions.php:

    add_filter('avf_builder_boxes', 'add_builder_to_posttype');
    
    function add_builder_to_posttype($metabox)
    {
    	foreach($metabox as &$meta)
    	{
    		if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
    		{
    			$meta['page'][] = 'tribe_events'; /*custom post*/
    		}
    	}
    	
    
    	return $metabox;
    }

    Hope it helps.

    Best regards,
    Nikko

    #1022749

    It worked,
    thankyou!

    #1022787

    Hi aledef,

    Glad that we could help :)
    Feel free to create a new thread if you need further assistance.
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Advanced Layout Builder in events created with the Events Calendar PRO plugin’ is closed to new replies.