Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #309196

    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;
    }
    • This topic was modified 9 years, 9 months ago by originaltours.
    #309201

    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

    #312009

    thanks!

    • This reply was modified 9 years, 9 months ago by AMseptemeber.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Posts: multiple images’ is closed to new replies.