• Hi,

    I’m currently using veryplaintxt 4.6.1 von Scott Allan Wallick and I’m very content with it except for one thing. When viewing the single article the sidebar will not be shown. That is as I think disadvanteous concerning the navigation and wil sometimes be unfavourable for the layout. So my question now is: what do I have to add (assumedly) to the single.php in order to have the sidebar shown in the single post view as well? Any help is appreciated!
    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • If using the WordPress Default theme, in single.php, you would change:

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

    to

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

    and change

    <?php get_sidebar(); ?>

    to

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

    Maybe that will give you an idea.

    Thread Starter filfil

    (@filfil)

    Thanks for your prompt reply. Since I didn’t find terms like “widecolumn” or “narrowcolumn” in the single.php of my theme I attach my single.php to this post. Hopefully you can help me:

    `<?php get_header(); ?>

    <div id=”container”>
    <div id=”content” class=”hfeed”>

    <?php the_post(); ?>

    <div id=”post-<?php the_ID(); ?>” class=”<?php veryplaintxt_post_class(); ?>”>
    <h2 class=”entry-title”><?php the_title(); ?></h2>
    <div class=”entry-content”>
    <?php the_content(‘<span class=”more-link”>’.__(‘Read More’, ‘veryplaintxt’).'</span>’); ?>

    <?php link_pages(‘<div class=”page-link”>’.__(‘Pages: ‘, ‘veryplaintxt’), “</div>\n”, ‘number’); ?>
    </div>

    <div class=”entry-meta”>
    <?php printf(__(‘This was written by %1$s. Posted on <abbr class=”published” title=”%2$s”>%3$s at %4$s</abbr>. Filed under %5$s. %6$sBookmark the permalink. Follow comments here with the RSS feed.’, ‘sandbox’),
    ‘<span class=”vcard”><span class=”fn n”>’ . $authordata->display_name . ‘</span></span>’,
    get_the_time(‘Y-m-d\TH:i:sO’),
    the_date(‘l, F j, Y,’, ”, ”, false),
    get_the_time(),
    get_the_category_list(‘, ‘),
    get_the_tag_list(‘Tagged ‘, ‘, ‘, ‘. ‘),
    get_permalink(),
    wp_specialchars(get_the_title(), ‘double’),
    comments_rss() ) ?>
    <?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) : ?>
    <?php printf(__(‘Post a comment or leave a trackback.’, ‘veryplaintxt’), get_trackback_url()) ?>
    <?php elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) : ?>
    <?php printf(__(‘Comments are closed, but you can leave a trackback.’, ‘veryplaintxt’), get_trackback_url()) ?>
    <?php elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) : ?>
    <?php printf(__(‘Trackbacks are closed, but you can post a comment.’, ‘veryplaintxt’)) ?>
    <?php elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) :?>
    <?php _e(‘Both comments and trackbacks are currently closed.’, ‘veryplaintxt’) ?>
    <?php endif; ?>

    <?php edit_post_link(__(‘Edit this entry.’, ‘veryplaintxt’),”,”); ?>
    </div>
    </div><!– .post –>

    <?php comments_template(); ?>

    <div id=”nav-below” class=”navigation”>
    <div class=”nav-previous”><?php previous_post_link(__(‘‹ %link’, ‘veryplaintxt’)) ?></div>
    <div class=”nav-next”><?php next_post_link(__(‘%link ›’, ‘veryplaintxt’)) ?></div>
    </div>

    </div><!– #content .hfeed –>
    </div><!– #container –>

    <?php get_sidebar() ?>
    <?php get_footer() ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar is not shown in single post view – how can I change this?’ is closed to new replies.