TwentyEleven Sidebar on Single Posts

Some WordPress themes single posts do not include the side bar on single post. For the WordPress 2011 default themes TwentyEleven, it was one of it. Below is the 2 file need to edit to make the side bar appear in TwentyEleven single posts page.

(1) single.php

Add the link get_sidebar above of get_footer as below

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

(2) style.css

Add below css style in the css file

.singular #primary {
margin: 0 -26.4% 0 0;
}

#nav-single {
display: none;
}

.singular .entry-header .entry-meta {
position: relative;
}

.singular .hentry {
padding: 0;
}

.singular .entry-header, .singular .entry-content, .singular footer.entry-meta, .singular #comments-title {
width: 100%;
}

.singular #content, .left-sidebar.singular #content {
margin: 0 34% 0 7.6%;
}

.singular article .entry-title {
padding-top: 0;
}

.singular .entry-meta .edit-link a {
right: 0;
top: 0;
left: auto;
}

Leave a Reply

Your email address will not be published. Required fields are marked *