WordPress.org

Ready to get started?Download WordPress

Forums

Set page template default to single column for pages (3 posts)

  1. traceelements
    Member
    Posted 3 years ago #

    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?

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    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.

  3. traceelements
    Member
    Posted 3 years ago #

    Perfect, thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic