Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #392262

    I would like to enable the Avia builder to the tribe_events calendar. I tried using the following code in my child theme’s functions.php file, but it isn’t working correctly. The code enables all of the boxes to the event edit screen, but when I switch to the advanced editor and hit publish, the event template doesn’t load properly.

    add_filter('avf_builder_boxes','enable_boxes_on_posts');
    function enable_boxes_on_posts($boxes) {
    	$boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('page','post', 'tribe_events'), 'context'=>'normal', 'expandable'=>true );
    	$boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('page','post', 'tribe_events'), 'context'=>'side', 'priority'=>'low');
    	$boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('page','post','tribe_events'), 'context'=>'normal', 'priority'=>'high' );
    	
    	return $boxes;
    }

    Is there something I am missing?

    #392300

    Hey!

    This is the expected result, when you enable ALB on a post/event/page it will be converted into an empty canvas so any other template won’t be taken into account. To put it in another words an ALB-enabled event will load /enfold/template-builder.php while a non-ALB event will load /enfold/config-events-calendar/views/single-event.php.

    Regards,
    Josue

    #392363

    Does this happen on regular pages as well? I noticed that my pages aren’t displaying their featured images at the top like they are supposed to.

    #392364

    If so, is there a way to add that back in?

    #392390

    No, unfortunately that’s not possible right now, The Advanced Layout Builder is meant to be used as a Layout Builder, so it needs to work on an empty canvas. Alternatively you can use the Magic Wand tool to generate some of the shortcodes ALB has without entering ALB.

    Regards,
    Josue

    #464786

    Josue,

    can you tell us if this will be possible in the near future? For my customer it’s to difficult to work with the Magic Wand tool (all those codes are to difficult to read).

    Thanks, Jos

    #464831

    Hi!

    There may be specific ALB elements for Events in the future, that pull that specific Event data (there are already some for WooCommerce Products) , feel free to request the same for Events here

    Cheers!
    Josue

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