• actionmedia

    (@actionmedia)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • TrishaM

    (@trisham)

    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

    Thread Starter actionmedia

    (@actionmedia)

    Unfortunately that didn’t work… Any other ideas?

    whooami

    (@whooami)

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

    Thread Starter actionmedia

    (@actionmedia)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar disappears when post is clicked’ is closed to new replies.