Wordpress 2011 template (14 posts)

Topic tags: templates, Wordpress
  • All of my regular pages that have a title on my navigation bar have the sidebar that includes my social media links, latest blog post titles, categories, and twitter feed.  The individual posts only have the post and the comment area.  There is an option on the page upon which I write the post to Format.  My choices are:standard, aside, link, gallery, status, quote and image.  I would like to at least include the categories on those individual post pages.  Any suggestions?

  • @deereinhardt What you describe as the options sounds like the post templates. My guess is what you are really looking for is a sidebar widget that displays the categories. When you are running on WP3.3, you can add widgets via the Appearance -> Widgets page. There you should be able to move the “Categories” widget into the sidebar area. This should make the categories visible on each and every blog post.

  • @deereinhardt Or is it that you want your Categories to appear under or above your post area?

  • I have the categories on the blog page http://www.time2mrkt.com/blog/ but nothing shows up on the individual post pages -  http://time2mrkt.com/random-thoughts/does-a-webinar-have-to-cost-money-to-have-value/

    When I look at the options available on my “posts>all posts> select a quick edit post is when I get the format options I listed above.  I can’t see in appearance where I can edit those format options.

  • @deereinhardt, this is going to involve some editing of your theme files. I believe what you want to do is to add the sidebar contents when viewing an individual post.

    To do that you will need to edit the following file in your Twenty Eleven theme:

    /wp-content/themes/twentyeleven/single.php

    The very last line in that file should have the following line:

    <?php get_footer(); ?>

    What you want to do is add an additional line right before that last line:

    <?php get_sidebar(); ?>

    So it should now be:

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

    You should now have the sidebar whenever you view an individual post.

  • Thanks @howwhowhen Will I have to add that on each post when I write it? or just once?

  • OOPs, @howwhowhen, I tried your suggestion and it worked, but the sidebar overlaps with the actual post.  I was trying to look in the code to see how to move the margin on the single page post but couldn’t figure it out.  My coding experience is not that advanced.  do you have any suggestions on that?

  • @deereinhardt, You’re right. My apologies. I’ll have a deeper look at the theme and see what I can do for you.

  • @deereinhardt, Here are the steps that should make it work. Follow my instructions for modifying single.php as I wrote above. Second, you also need to modify the functions.php file. In line number 589 of that file there should be a line like so:

    classes[] = ‘singular’;

    Now comment it out by changing it to the following:

    /*classes[] = ‘singular’;*/

    That should allow the sidebar on posts and fix the layout issues. Hope that works for you.

  • I will try it and report back in.  Thanks for helping me on this.

  • @howwhowhen Well, I tried what you suggested and it gave me a couple of errors.  I went back to just adding the sidebar and it worked.  Who knows why things do certain things.  BUT it works.  I really really appreciate the time you invested on my behalf.  Let me know if I can help you with something!!!

  • @deereinhardt, the steps of including the sidebar are right, but in addition to that you’ve got to tweak the CSS for the template that runs the single posts page.

    I’ve done this for a couple of clients (they’re using the 2011 theme). Send me a message if you want & I’ll line out the CSS changes that you need to make in addition to adding <?php get_sidebar(); ?> to the them.

  • @deereinhardt looks like you have this fixed? 

  • I’ve tried 2011 and found 2010 more versatile. Categories are easy there. Might be easier to change themes. 


Add your voice to the discussion

Existing members: . If you do not have a SME account, .