Forums

[resolved] Widgets do not show when viewing comments (3 posts)

  1. jwadew
    Member
    Posted 2 years ago #

    Hello all,

    I'm using the Kubrick theme, with modified coloring.
    I'm using the following widgets:
    Text
    Calendar
    Categories
    Archives
    Recent Comments
    Meta

    These all show properly on the main page. However, when you click on comments (under an existing post), that page shows no widgets. So the user has to click the back button on the browser to get back.

    I'm assuming this is a simple setting somewhere, but can't find it. Any ideas?

    Thanks in advance to anyone who can help in any way.

  2. alchymyth
    The Sweeper
    Posted 2 years ago #

    that would bring you to single.php, which does not show a sidebar by design.

    to get the single.php to show the same design as the front page,
    change line 10 of single.php, from:

    <div id="content" class="widecolumn" role="main">

    to:

    <div id="content" class="narrowcolumn" role="main">

    and near the end add a 'get_sidebar();':
    so change from:

    </div>
    
    <?php get_footer(); ?>

    to:

    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    btw:
    remember that the default theme will be overwritten when you update to a new version of wordpress,
    so it would be a good idea to save the folder of the default theme under a new name.

  3. jwadew
    Member
    Posted 2 years ago #

    There it is!

    Thanks so much alchymyth. Perfect.

Topic Closed

This topic has been closed to new replies.

About this Topic