Solved

How to remove sidebar from the comments page?

Posted on 2014-03-18
3
298 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Who says nothing in life is free? WordPress.com is a freebie. WordPress.org's downloadable publishing platform is free. Heck, even WordPressMU is free. WordPress is an open source project, which means it can be used on any personal or commerc…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

789 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