Tagged: advanced layout builder
-
AuthorPosts
-
September 26, 2014 at 1:18 am #325346
hi there
i used to have the advanced layout working in post, by modifying the meta.php with
array( ‘title’ =>__(‘Avia Layout Builder’,’avia_framework’ ), ‘id’=>’avia_builder’, ‘page’=>array(‘portfolio’,’page’,’post’), ‘context’=>’normal’, ‘priority’=>’high’, ‘expandable’=>true ),
and changing the template-builder.php and it was working just fine as per this thread: https://kriesi.at/support/topic/how-to-add-advanced-layout-manager-to-blog-posts/
but now after the update, i re-edited the files as before but can’t see the advanced layout in my post no moreplease assist
September 26, 2014 at 3:27 am #325373Hey!
Try adding this at the very end of your theme / child theme functions.php file:
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('portfolio', page', 'post'), 'context'=>'normal', 'expandable'=>true ); $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('portfolio', page', 'post'), 'context'=>'side', 'priority'=>'low'); $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('portfolio', page', 'post'), 'context'=>'normal', 'priority'=>'high' ); return $boxes; }
Cheers!
JosueSeptember 30, 2014 at 5:50 pm #327473Hello, why do you not offer that option out of the box (Avia Builder in posts) like say Visual Composer that allows one to decide where it is activated ? Wouldn’t that be easier to have you guys set that up once instead of a whole bunch of people having to hack their install each on their own ?!
And if I may ask.. what is the rationale for not including it for posts in the first place ? Why should posts be the “poor child” as compared to pages ?!
THX
- This reply was modified 10 years, 1 month ago by ianstudio.
September 30, 2014 at 6:36 pm #327502Hey!
There is a reason for that, and it’s because Posts have additional built-in functionalities like formats, share links, related entries and comments, when you activate ALB on Posts you basically transform it into an empty canvas, losing their “Post” purpose.
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.