Forums

[resolved] Getting Sidebar to show in comments with default theme (8 posts)

  1. stopkatie
    Member
    Posted 3 years ago #

    Hi everyone,
    I am using the default theme for my page and I want the sidebar to show when people click to view the comments page. I have looked through the coding on comments.php but do not see any place to add or change this. This is what it looks like:
    http://wanderful.us/magicalmistertour/?p=6#comments

    Does anyone know where I can edit this part of the coding? I have a feeling it's in another file, but I cannot figure out what file that would be. I looked through functions but didn't see anything there. Any help would be greatly appreciated.

    Also I want to note that I DO NOT want to use another theme. If you can help, I would be SOOOO happy!!! Thank you!

  2. @mercime
    Member
    Posted 3 years ago #

    n your theme's single.php edit in notepad or bbedit to change the following:

    1) AT TOP of single.php change class="widecolumn" to class="narrowcolumn" like so

    <?php get_header(); ?>
    <div id="content" class="narrowcolumn">

    2) AT BOTTOM of single.php add <?php get_sidebar(); ?> just before <?php get_footer(); ?> like so

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

    Save the revised single.php file and upload to your theme's folder. Clear cache and see the sidebar appear in single post view.
    Good luck.

  3. stopkatie
    Member
    Posted 3 years ago #

    I LOVE YOU SO MUCH THANK YOU THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  4. freef9
    Member
    Posted 3 years ago #

    I know the topic is two months old as of my post but:

    stopkatie - thank you for your persistence to find this answer. I followed your link from another post to this one.

    mercimen - thank you for providing the answer, was a simple straight forward fix.

  5. sugarbleach
    Member
    Posted 3 years ago #

    Same here! Thanks so much for answering this!!!!!

  6. singhrt
    Member
    Posted 3 years ago #

    And same here!! I've been pulling my hair out but this has saved me.

    Thanks Katie!!

  7. zilla4
    Member
    Posted 3 years ago #

    Thank you that is wonderful! I was tearing my hair out over this!

    ... I have a dumb question though... My sidebar shows up now but the bookmarks and login are missing... I'm using the default theme with the latest version of wordpress... does anyone have an idea of why this is missing??

    thank you so much if you can help!

  8. pedja-wp
    Member
    Posted 2 years ago #

    THANK SO VERY MUCH!
    the answer solved my sleeping problems :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.