?
Solved

How to remove sidebar from the comments page?

Posted on 2014-03-18
3
Medium Priority
?
307 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 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Now that you've installed WordPress 2.9 (http://www.experts-exchange.com/articles/Web_Development/Blogs/WordPress/WordPress-2-9-What-to-Expect-When-Upgrading-to-WordPress-2-9.html?) on your site, you need to install some plugins to get the most out …
WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…
Suggested Courses

762 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