• I’m looking to make a version of the default template in the default theme with no sidebar. This would be a no side bar version in addition to, not replacing the default theme.

    I’m guessing it’s in styles, but where/how?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Not sure what you are saying, the ‘twenty ten’ default theme already has a one column template.

    You apply this from Admin > Pages > Pages, quick edit the page you wamt and there is a dropdown, choose One Column and save.

    HTH

    David

    Thread Starter grunzster

    (@grunzster)

    I know that, but I’m talking about the “Default theme” AKA: the old theme, and the default template.

    Not the twenty ten theme.

    look into single.php of the kubrick default theme – that is the way to make it ‘single column’:

    in your template file:
    – change <div id="content" class="narrowcolumn" ..
    into <div id="content" class="widecolumn" ..
    – delete the <?php get_sidebar(); ?> line

    Thread Starter grunzster

    (@grunzster)

    There’s nothing in single.php that says “narrowcolumn” Just ran a search and got nothing.

    Also, I can’t just delete it. I want this in addition to the 2 column version. I want the option to have the side bar or not depending on the page.

    Or more specifically. I just started using a photo album plugin. I want the page for the albbum to be one column with no side bar. Every other page, I want the sidebar on.

    make a copy of single.php; save it as ‘one-column.php’ (or any other name)

    and follow the docu for
    page templates
    http://codex.ww.wp.xz.cn/Pages#Page_Templates

    Thread Starter grunzster

    (@grunzster)

    Got it!

    It was actually in page.php not single.php.

    Also, you don’t want to change
    <div id=”content” class=”narrowcolumn”
    into <div id=”content” class=”widecolumn”

    Otherwise the content gets shifted over to the right and you wind up with a huge margin on the left. Of course that could have something to do with the plugin I’m using on that page?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Default theme – default template with no side bar’ is closed to new replies.