Solved

How to remove sidebar from the comments page?

Posted on 2014-03-18
3
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 39936977
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
ID: 39937067
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
ID: 39937068
Led me down the right path.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
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 Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

733 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