Solved

How to remove sidebar from the comments page?

Posted on 2014-03-18
3
291 Views
Last Modified: 2014-03-18
I want to remove the sidebar from the comments page of a blog.  Actually I would like it to work correctly, but that will be another post.  For now I just want it out of the way for appearance sake.  This is blog page  http://www.myzooanimalhospital.com/blog
If you click on a post, to read and see comments, the sidebar is intrusive as the page is laid out.  I cannot find a page for comments in the admin pages, only blog page.  Is there a place I can turn off the sidebar on the page that shows the post?
0
Comment
Question by:leachj
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
Comment Utility
Comments are not a separate page template with its own sidebar, instead it's called by the post template (usually single.php in the theme).  When you edit the post, check the meta boxes for a "Template" pull down and see if the theme already has a full-width option.  If not, you can make one easily enough:

https://wordpress.org/plugins/custom-post-template/
0
 

Author Comment

by:leachj
Comment Utility
Ok, got it figured.  the single.php had a <?php get_sidebar(); ?> line at the bottom.  I had commented it out using //
I tried several comment types ( //, #, )  but it didn't like them.  I had to use

<?php
/**
*  <?php get_sidebar(); ?>
*/
?>

for the comment to take.  Must be the version of php I guess.
0
 

Author Closing Comment

by:leachj
Comment Utility
Led me down the right path.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Wordpress Horizontal Drop-Down Menu In this tutorial I will show you had to add a WordPress horizontal navigation menu to your theme. I have searched and searched for a good tutorial on creating a WordPress nav menu without adding a plug-in or us…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now