Tagged: avia
-
AuthorPosts
-
February 6, 2015 at 8:52 pm #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?
February 6, 2015 at 10:21 pm #392300Hey!
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,
JosueFebruary 7, 2015 at 1:30 am #392363Does 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.
February 7, 2015 at 1:35 am #392364If so, is there a way to add that back in?
February 7, 2015 at 3:13 am #392390No, 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,
JosueJune 26, 2015 at 8:28 am #464786Josue,
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
June 26, 2015 at 10:13 am #464831Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.