WordPress.org

Ready to get started?Download WordPress

Forums

Side Bar Question (7 posts)

  1. John Zakharia
    Member
    Posted 2 years ago #

    I am new to wordpress. I have a template. On some pages there is a sidebar like this one

    http://www.sweatfitness.ca/whats-new/

    and on some pages there is not a side bar like this

    http://www.sweatfitness.ca/get-started/

    How do I control which page gets a sidebar and how to remove the side bar?

    God bless

  2. Jeff Clark
    Member
    Posted 2 years ago #

    the sidebar is called in your theme. The default side bar function is get_sidebar() just add this where you would like to call it.

  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

    control which page gets a sidebar and how to remove the side bar

    you could try to wrap the 'get_sidebar()' code into a conditional statement, using http://codex.wordpress.org/Conditional_Tags

    most likely, you will need to adapt the css styles.
    you can use page specific css classes output by body_class (at least in your example linked site) to do target the individual pages.

  4. John Zakharia
    Member
    Posted 2 years ago #

    You are very kind to give me advice. I appreciate that. But there is a way through the dashboard I am sure. If anyone knows how to do it through the dashboard it would be appreciated.

  5. Jeff Clark
    Member
    Posted 2 years ago #

    you cant add that function through the dashboard. It will have to be added manually.

  6. adeelghaffar
    Member
    Posted 2 years ago #

    Sir please tell me not showing the my sidebar but php code in the sidebar is correct please tell where is problem the code is totally rite now but not show the sidebar on my blog

    Thanks for anticipation

    plzz tell me

  7. adeelghaffar
    Member
    Posted 2 years ago #

    Sir please tell me not showing the my sidebar but php code in the sidebar is correct please tell where is problem the code is totally rite now but not show the sidebar on my blog

    Thanks for anticipation

    plzz tell me

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags