Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23756

    I have noticed at the bottom of each Blog post, eg. http://websitedesign101.com.au/website-design-checklist-how-to-create-a-successful-website/

    there is a section which says “You might also like …” which I think is brilliant and I intend to keep it. However, I was wondering how do I edit that section of the blog – for example if I wish to add an extra component, such as photo gallery to every blog post.

    Thank you so much.

    Ivana

    #121034

    Actually Kriesi uses several files for the blog post. The main file is wp-contentthemesenfoldsingle.php which then includes several other files – eg the wp-contentthemesenfoldincludesrelated-posts.php template for the related posts component. You can add your code to single.php or to one of the templates in the wp-contentthemesenfoldincludes folder.

    #121035

    Thanks Dude. I was hoping I would not have to touch the code … that it was one of the settings which I can change through the theme menus. :)

    #121036

    You also may create a childtheme to add your personal stuff, but that won’t help you eitherway… lots of code to do… :)

    So I’d like to mention you should just enable the builder for the post types.

    1. Locate meta.php within config-templatebuilder/avia-template-builder/config/

    2. Have a look at lines 4-7:

    $boxes = array(

    array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('portfolio','page'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ),

    array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('portfolio', 'page' , 'post'), 'context'=>'side', 'priority'=>'low'),

    );

    Change to:

    $boxes = array(

    array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('portfolio','page','post'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ),

    array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('portfolio', 'page' , 'post'), 'context'=>'side', 'priority'=>'low'),

    );

    You just have to add the ‘post’ type to enable the builder for posts. Don’t worry – actually it’s working very fine. If you encounter any errors, just remove it.

    #121037

    nice hint – thanks – doesn’t help to change the layout of the blog page – but helps editing new posts!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Blog Template Layout’ is closed to new replies.