Support » Fixing WordPress » Sidebar – showing on full article page

  • Hi, sorry if this has been answered, but could not find it anywhere on the forum.

    I would like to show the sidebar on the content pages. The WordPress default is the sidebar shows up on the main page(s), but not when reading the rest of the post(s). I have tried hacking single.php, style.css, and a few other files, but no success.

    Someone please help, please?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks!!! was able to figure it out. Apparently, it’s in the css.

    Hi,
    To add a side bar to a full article page, you need to modify 2 files oin your theme. Try this (homemade solution, but simple) :
    – in single.php : change the class of the content DIV tag from <div id=”content” class=”widecolumn”> to <div id=”content” class=”narrowcolumn”>
    – add <?php get_sidebar(); ?> just before <?php get_footer(); ?>

    – in header.php : change the condition :
    if ( !$withcomments && !is_single() )
    to
    if ( !$withcomments || is_single() )

    So you include single pages in side bar formatting, the difference is the background picture.

    That works on my blog.

    Hope that helps.

    Seif

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar – showing on full article page’ is closed to new replies.