DevDmBootstrap3

Twitter Bootstrap 3 WordPress Starter Theme for Developers

Home Community Tips and Tricks Page template to only show the Right Side Bar

This topic contains 2 replies, has 2 voices, and was last updated by  danny 3 months, 3 weeks ago.

  • Author
    Posts
  • #187

    danny
    Keymaster

    This is the code you would use to create a page template (page-template-rightsidebar.php) to only show the right sidebar. Nothing fancy here. We are just manually calculating the dmbs-main width by subtracting the size of the right sidebar and removing the code for the left sidebar.

    • This topic was modified 3 months, 3 weeks ago by  danny.
  • #230

    betyonfire
    Participant

    Hi,

    I used the code above to set up some templates, but found that you’re missing the code for the nav template part: <?php get_template_part(‘template-part’, ‘topnav’); ?>

    Michelle

  • #233

    danny
    Keymaster

    Whoops. Thanks Michelle.

You must be logged in to reply to this topic.