WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar disappears when post is clicked (5 posts)

  1. actionmedia
    Member
    Posted 6 years ago #

    Hello,

    I am using the latest version of WordPress, and am only experiencing one problem. When I click on a post, the sidebar goes away. Everything else works fine, if I click on a page, it works great. Only when you click on a post does the sidebar disappear.

    URL: http://actionmedia.net/~bjorn/wordpress/

    Can someone please point me in the right direction?

    Thanks.

  2. TrishaM
    Member
    Posted 6 years ago #

    It sounds like your Theme may be using a single.php file to display single post entries, and that file is probably missing the function call get_sidebar()

    Take a look at your index.php file (which you're likely using for your home page) to see where this function is, and copy & paste it into your single.php file where it should be. It's usually located right after get_header or right before get_footer. Be careful to put it exactly where it is in the index file so that you don't accidentally split a div....

    HTH, post back if it doesn't

  3. actionmedia
    Member
    Posted 6 years ago #

    Unfortunately that didn't work... Any other ideas?

  4. whooami
    Member
    Posted 6 years ago #

    thats the solution.. compare sidebar.php to index.php .. copy the code over that creates the sidebar..

  5. actionmedia
    Member
    Posted 6 years ago #

    I fixed it:

    In the single.php change
    <div id="content" class="widecolumn">
    to
    <div id="content" class="narrowcolumn">

    Then I added the sidebar tag at the bottom.

    Thanks guys!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.