Tagged: blog posts, enfold
-
AuthorPosts
-
May 24, 2013 at 5:52 am #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
May 24, 2013 at 11:31 am #121034Actually 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.
May 27, 2013 at 3:12 am #121035Thanks 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. :)
May 27, 2013 at 3:28 am #121036You 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.
May 27, 2013 at 5:24 am #121037nice hint – thanks – doesn’t help to change the layout of the blog page – but helps editing new posts!
-
AuthorPosts
- The topic ‘Blog Template Layout’ is closed to new replies.