• Hi! I am currently trying to add a sidebar to all of the pages, perhaps including the main page. How can I do this??

Viewing 9 replies - 1 through 9 (of 9 total)
  • +1 for this

    You made beautiful theme.

    I need to do add to page template RIGHT and LEFT sidebar.

    What to change in code?

    Hi! To add sidebar to all pages, follow next steps:
    1. Rewrite in your child theme templates page.php, index.php, archive.php, search.php.
    2. Find in this template next code:
    <div id="primary" class="content-area col-xs-12">
    and replace it with:
    <div id="primary" class="content-area col-md-8 col-sm-12 col-xs-12">
    3. Add next code right before <?php get_footer(); ?>:
    <?php get_sidebar(); ?>

    @tefox: thanks, this is solution for one sidebar or for both (left & right) ?

    If for single right sidebar (like on single post). To add 2 sidebars you need a few more steps:
    1) register new widget area.
    2) create file sidebar-secondary.php (use sidebar.php as example) and put here created widget area.
    3) change wrapping div for content into <div id="primary" class="content-area col-md-4 col-sm-12 col-xs-12">
    4) include template for a new sidebar with following – <?php get_sidebar('secondary'); ?>

    Thread Starter deedolph

    (@deedolph)

    I’m sorry I’m a huge pain in the ass lol the first coding you sent me worked, just wondering how to make the sidebar a bit smaller, and move it to the left side of the page

    @tefox: this is too difficult for me.

    I stucked at first step: “register new widget area”

    Any clue?

    Thread Starter deedolph

    (@deedolph)

    Hi teFox,
    Just trying to get in touch again to see if you can help me move only the sidebar to the left and to make it less wide. Thanks!

    Very useful.

    Any way of modding the main blog posts page to add a side bar? There seems to be no template for this.

    Also, I have successfully created a new homepage template with featured posts and page content, but to achieve this I have had to hack the main ‘extras.php’ file in the parent theme as when I tired to replace this by adding an ‘extras.php’ file in my child theme nothing changed…’s

    I have read than anything in the ‘child’ folder replaces stuff in a parent folder, but this does not seem to be the case with php script. Adding code to the functions.pho file just seems to break the theme…

    Hello,

    I am wondering if there is a way to remove the main sidebar widget from my blog posts? I would like full page text.

    Any help is welcome!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Sidebar’ is closed to new replies.