Can single.php be edited to eliminate sidebars? Is there a way to do this for a single.php template to not have sidebars? Thanks.
ethan2
Posts: 4
Joined: 09 Feb 2012, 14:36
Can single.php be edited to eliminate sidebars? Is there a way to do this for a single.php template to not have sidebars? Thanks.
ethan2
Posts: 4
Joined: 09 Feb 2012, 14:36
Sure. Just remove the sidebar template tag from single.php. It should look something like <?php get_sidebar(); ?>. Depending on your theme, this may leave a blank spot where the sidebar was previously located. If thats the case, you'll need to edit your HTML and CSS.
yes - find the get_sidebar() code and remove it;
http://codex.wordpress.org/Function_Reference/get_sidebar
will probably need adjustments to style.css to stretch the content over the available space.
Thanks for the responses. Suffusion does not have a reference to <?php get_sidebar(); ?> in single.php. Might it be referred to by another tag? Would it be in another php file that would reference single.php?
Thanks
Is there a loop single.php?
No loop single.php. Any other thoughts?
Thanks
try to work through the docu to help you to identify where the sidebar is called:
http://codex.wordpress.org/Theme_Development
suffusion is a theme with a lot of dashboard options (you might even find an option to remove the sidebar?), with the disadvantage that the templates are more complex than in more general themes.
Could be in footer and or header.
Also concider a css alternative. If you know how to use dev tools like Firebug it shouldn't be too difficult.
I did post a solution here yesterday: http://aquoid.com/forum/viewtopic.php?f=4&t=8140&p=33406#p33406.
yep, that should do it.
Thanks everyone. Will give these a try.
Thank You
Where in function.php should this be placed?
Thank You
You must log in to post.