• https://www.sonicpeanut.com/blog/2007/04/04/hello-world/

    I am trying to add the sidebar to my Permalink Single Post pages. I found the code below

    <?php get_sidebar(); ?>

    and inserted it into the single.php right after the <?php get_header(); ?> code. You can see from the site that it just pushes all Post data below the sidebar. How can I get them to share like they usually do? I even tried putting the get_sidebar code further down in the single.php code but it would just push what was below it DOWN instead of being next to it.

    Also the sidebar doesnt have the same background it usually does on other pages. ??

    I searched the Docs and I cant find anything. Its probably simple but I’m new at this.

    Thanks a million!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter brandonzev

    (@brandonzev)

    Hello? Anyone? Is this problem without a solution? If this is too complicated to help me with I would really appreciate someone just telling me so I can give up and move on. Any help anyone can give would be greatly appreciated!

    Try copying index.php that already has the sidebar and adding the comments/comment form to it. Probably will work better.

    Got it!!! Had the same problem as you. Here is the solution

    Go to edit your single.php page

    on the second line, change

    <div id=”content” class=”widecolumn”>
    for
    <div id=”content” class=”narrowcolumn”>

    Next just add your
    <?php get_sidebar(); ?>
    code before the last line (just above the
    <?php get_footer(); ?>)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding sidebar to Single Post pages – Ahhh! Almost there!’ is closed to new replies.