Hallo,
ich nutze das Theme veryplaintxt 4.6.1 von Scott Allan Wallick. Bei dessen Ausgangskonfiguration wird in der Artikel-Einzelansicht die Sidebar nicht angezeigt. Ich fände es jedoch besser für die Navigation, wenn sie angezeigt würde. Auch das Layout wird mitunter zu seinen Ungunsten verändert, wenn der Artikel und die eingefügten Bilder in der Einzelansicht plötzlich in die Breite gezogen werden. Was muss ich in der single.php ändern, damit die Sidebar auch in der Einzelansicht erscheint?
Danke für jeden sachdienlichen Hinweis!
Hier meine aktuelle single.php:
PHP
<?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 <a href="%7$s" title="Permalink to %8$s" rel="bookmark">permalink</a>. Follow comments here with the <a href="%9$s" title="Comments RSS to %8$s" rel="alternate" type="application/rss+xml">RSS feed</a>.', '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(__('<a href="#respond" title="Post a comment">Post a comment</a> or leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url()) ?>
<?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : ?>
<?php printf(__('Comments are closed, but you can leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url()) ?>
<?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : ?>
<?php printf(__('Trackbacks are closed, but you can <a href="#respond" title="Post a comment">post a comment</a>.', '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() ?>
Alles anzeigen