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

    Hi Support,

    try to reach out to get Avia Layout Editor on The Events Calendar pages with the following function – but it doesn´t work:

    // **********************************************************************// 
    // Enable Avia Page Builder on Events
    // **********************************************************************// 
    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'][] = 'event'; /*instead add the name of the custom post type here*/
    		}
    	}
    	return $metabox;
    }

    How can i get this?

    Best regards!

    Tobias

    #1378219

    Hey Tobias,

    Thank you for the inquiry.

    You have to use the avf_alb_supported_post_types filter instead.

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

    Please note that enabling the ALB for the events has some limitations. Some elements for events are not available in the builder and a few of the default features of the event post type might not work as expected.

    Best regards,
    Ismael

    #1378304

    Thanks Ismael,

    works great!

    Best regards!
    Tobias

    #1378315

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Avia Layout Editor on Posttype The Events Calendar’ is closed to new replies.