?
Solved

How to remove sidebar from the comments page?

Posted on 2014-03-18
3
Medium Priority
?
322 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 2000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
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…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Suggested Courses
Course of the Month13 days, 14 hours left to enroll

807 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