Hello,
Just a quick question. I would like to include multiple images in the header of a post. What would be the way to go? Can I enbale the Avia editor on the posts and use a gallery?
Thanks in advance!
A missing ‘ in the code answered by Kriesi.at
The right code is:
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;
}
Hey!
Yes, you can enable ALB on Posts, add this to 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!
Josue
thanks!