• Resolved cassandra.teo

    (@cassandrateo)


    Hi there,

    How do I add a sidebar to a specific page?
    I do not want it to appear on all my pages.

    I am using Openstrap.

Viewing 5 replies - 1 through 5 (of 5 total)
  • <?php if( is_page( 'specific' ) ) get_sidebar( 'specific' ); ?>

    this calls the file sidebar-specific.php only in the page with the slug or title ‘specific’

    It looks like there are various page templates provided by Openstrap.

    When you edit a page, on the right hand side there’s a box that says ‘Page Attributes‘ then under the heading ‘Template‘, you can choose a template from a number of combinations of where you’d like the sidebar to sit, and even the number of sidebars too.

    For example; choose ‘Template Content Sidebar’ if you want to have a column for your content (to sit on the left side of your page) and the sidebar on the right.

    Make sure you populate your sidebar by going to: Dashboard > Appearance > Widgets

    I’m having a similar problem, however I created a new forum about this. Please could you see what I have written here: https://wordpress.org/support/topic/sidebar-only-on-specific-page?replies=2#post-7996071

    my site is https://www.jasminehughes.com

    Thread Starter cassandra.teo

    (@cassandrateo)

    Thank you all for your help! I have tried all suggestions and the plugin “Widget Logic” seems to work the best for now.

    Thread Starter cassandra.teo

    (@cassandrateo)

    Thank you, Adeline for pointing that out to me! Did not notice it before.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Side bar on specific page’ is closed to new replies.