Sunday, January 12, 2014

How to add a sidebar to Sentinel WordPress Theme frontpage

A friend of mine also bought a copy of Sentinel theme and wondered how to add a right sidebar to the frontpage. Indeed, many people would like to have such an option so to display a pretty AdSense 300x600 vertical ad or other stuff on the sidebar. The latest update has not yet solved this problem. So here is some more detail.

You might have tried all the options in the page editor or theme settings page, but the sidebar just never show up. Take a look at the source code, and you will notice that there is a comment "<!-- No sidebar -->".

Open page-1.php in templates/home, and page-1-sb-right.php in templates/page.

Replace line 15 "<div class="grid">" of page-1.php with line 17 "<div class="grid sidebar_right">" of page-1-sb-right.php

and

replace line 30 "<!-- No sidebar -->" of page-1.php with line 36 "<?php get_sidebar(); ?>" of page-1-sb-right.php.

Of course, you can modify, add or delete other items for your frontpage as well.

Just received an update notification from the plugin Visual Composer, hopefully the coming Sentinel update will include a working Visual Composer as well. That's about it for now.

No comments:

Post a Comment