Forums

Can single.php be edited to eliminate sidebars? (13 posts)

  1. ethan2
    Member
    Posted 3 months ago #

    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

  2. imikedesigns
    Member
    Posted 3 months ago #

    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.

  3. alchymyth
    The Sweeper
    Posted 3 months ago #

    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.

  4. ethan2
    Member
    Posted 3 months ago #

    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

  5. deepbevel
    Member
    Posted 3 months ago #

    Is there a loop single.php?

  6. ethan2
    Member
    Posted 3 months ago #

    No loop single.php. Any other thoughts?
    Thanks

  7. alchymyth
    The Sweeper
    Posted 3 months ago #

    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.

  8. deepbevel
    Member
    Posted 3 months ago #

    Could be in footer and or header.

  9. deepbevel
    Member
    Posted 3 months ago #

    Also concider a css alternative. If you know how to use dev tools like Firebug it shouldn't be too difficult.

  10. Sayontan Sinha
    Member
    Posted 3 months ago #

  11. deepbevel
    Member
    Posted 3 months ago #

    yep, that should do it.

  12. ethan2
    Member
    Posted 3 months ago #

    Thanks everyone. Will give these a try.
    Thank You

  13. ethan2
    Member
    Posted 3 months ago #

    Where in function.php should this be placed?
    Thank You

Reply

You must log in to post.

About this Topic

Tags