WordPress.org

Support

Support » Themes and Templates » Set page template default to single column for pages

Set page template default to single column for pages

  • I am using the TwentyTen theme and WP 3.0. I like that I can select from single or double column layouts on each page. What I really want to do is to set the default (for pages only) to single column instead of double. I don’t want to completely remove the option of using double column if I decide to, but I want the default to be single (for editors who will be creating new pages, and won’t know to toggle single column). Can anyone help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    @alchymyth

    Forum Moderator

    take the different code from ‘onecolumn-page.php’ –
    for instance the class .one-column at the beginning:

    get_header(); ?>
    
    		<div id="container" class="one-column">
    			<div id="content" role="main">

    and the missing call of the sidebar at the end:

    </div><!-- #container -->
    
    <?php get_footer(); ?>

    and edit page.php accordingly.

    Perfect, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Set page template default to single column for pages’ is closed to new replies.
Skip to toolbar