post

Flogging the new WordPress Twenty Twelve Theme

Default layout of the Twenty Twelve theme is minimalistic to the extreme

I have not gotten a chance to follow the development of the Twenty Twelve theme, but now that it is released for self-hosted WordPress blogs (it has been available on WordPress.com for several weeks) it is high-time to catch-up on what will surely be the default theme that comes with the next release of WordPress, in December.

Twenty Twelve theme creating a banner image

The super-minimalistic layout of Twenty Twelve in its default state is sure to appeal to many bloggers looking to highlight their words, instead of flashy graphics. Minimal is just the default, though. There are a number of tools in the admin dashboard that make it easy to customize Twenty Twelve – including uploading your own banner image and cropping it to size.

Same Twenty Twelve home page with new custom banner in place

Some elements, like the location of the menu bar, will still require coding or code manipulation to customize, though. WordPress has made it very easy – maybe too easy – to edit individual theme files from the admin dashboard. I say “too easy” because, unfortunatley, there is no way to backup a file before editing it and potentially rendering your theme innoperable, if you make a mistake.

Editing the header.php file using the theme editor

The theme editor (number 1 above) is located under the Appearance menu. A list of theme files appears on the right-side of the edit box, and header.php (number 2 above) contains the menu bar code (number 3 above) that can be moved in order to relocate the menu bar below the banner image.

	<header id="masthead" class="site-header" role="banner">
	...
	</header><!-- #masthead -->

	<nav id="site-navigation" class="main-navigation" role="navigation">
		<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
		<div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
		<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
	</nav><!-- #site-navigation -->

The “masthead” (banner image) code is ommited above for clarity, but you can see that the entire block of “site-navigation” code (menu bar code) is simply moved from its original location above the “masthead”, to its new position immediately after the closing “masthead” div.

Same Twenty Twelve home page but with the menu bar located below the banner image

There are some really smart elements behind the scenes that will make blogging easier, too. Unlike the Twenty Ten and Twenty Eleven themes, there are no default sidebar widgets in Twenty Twelve. In fact, if you do not have any widgets selected there is no sidebar at all.

Twenty Twelve theme image post displays full-width with no sidebar, and scales automatically when a sidebar is added

And, whether you use sidebar or not, the Twenty Twelve theme scales images to the appropriate width. The 1,280 pixel-wide image above scales to 960 piexels when no sidebar widgets are incorporated into the layout – and 625 pixels with a sidebar. This dynamic CSS scaling works all the way down to mobile devices too, so your blog looks great without having to mess around with mobile plugins.

No special formatting for the quote post format, but block quotes have a gray background

The Twenty Twelve theme does not incorporate any special formatting for the quote post format, but any text enclosed in block quote tags gets a light gray background. This is irrespective of the post format, but the example shown here is on the same quote post.

The aside post format in the Twenty Twelve theme gets a light blue background with a dark blue bar down the left side

The aside post format does get quite a makeover in the Twenty Twelve theme. For one thing, the post title is now included in the published post – something that is sure to make RSS feeds with aside posts look a lot better. They also standout more, with a light blue background and darker-blue sidebar.

I am looking forward to spending more time with the Twenty Twelve theme. From what I have seen so far, I think this will become the most popular default theme since Twenty Ten.

7 thoughts on “Flogging the new WordPress Twenty Twelve Theme

  1. Hi,
    I just started my blog on wordpress two days ago, and go the twenty-twelve theme by default straight up.
    I am still working on background colours etc, but for now it is doing fine for what i want.

    • I started a blog on WordPress.com just a few months ago, James, and I got the Twenty Twelve theme. I am happy with it just the way it is – no fancy banners or sidebar widgets.

  2. Thanks for the post. Looking forward to more. I remember using your tips quite a bit with twentyten.
    Thanks very much. I now have my menu below my header ;)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>