Laura Kalbag

WordPress 3.0 Part 3—Theme Development and the Design

This post has three parts. This is part three. Visit the other parts below:


Easier for theme developers to make it easy for users

The following WordPress 3.0 features really make it easier for the big-time theme developers who create highly customisable themes.

This is brilliant. Before the menus feature, we had to bodge any extra links we wanted on to the end of the wp_list_pages (that just lists pages!) function without much control on what was shown, and only being able to adjust the orders of the pages by entering a number into a clunky text box.

Now you can easily create drag-and-drop menus with custom links place anywhere within the navigation. This enables users to:

WordPress menus in action

WordPress menus in action

All these functions are perfect for users who don’t want to get their hands dirty in the PHP files and make it easier for theme developers as they just need to add the menu function to their functions.php file and use the right template tag to include the customised menus in their themes.

add_action( 'init', 'register_my_menu' ); function register_my_menu() { register_nav_menu( 'navigation-menu', __( 'Navigation Menu' ) ); }

Add this to the functions.php file to register a menu by the name of ‘Navigation Menu’

<?php wp_nav_menu( array( 'theme_location' => 'navigation-menu' ) ); ?>

Add this to the template file wherever you want to include the menu.

Custom backgrounds and headers

For theme creators making themes for a wide user base, custom backgrounds and headers are very useful. Most of the big name theme producers have offered custom backgrounds and headers as part of their ultra-sexy, ultra-customisable themes for a long time but now the smaller scale theme developers can do this by adding some extra functions to their functions.php file and into the relevant template files.

I haven’t tried creating a theme with these features yet, as I tend to give my clients one custom-created choice as part of the web design, but you can see custom backgrounds and headers in action in the new default theme, TwentyTen, which I use on this blog. You should be able to see that big yellow block at the top of the page. This is a custom header image I created and uploaded using the settings under Appearance > Header.

As you can see from my image below, it’s incredibly easy to upload your own header or you can pick from one of the beautiful photographs taken by Matt Mullenweg, the creator of WordPress.

Custom headers in WordPress 3.0

Custom headers in WordPress 3.0

If you want to know more about using custom backgrounds and headers, I’d recommend taking a look at the reasonably well-commented code in the TwentyTen theme. Unfortunately I haven’t got any other recommended bookmarks for this yet, I hope you’ll forgive me!

Change in design

TwentyTen

WordPress 3.0 also comes with a cool new default theme called TwentyTen. It was getting to the point where no decent blog would be seen dead in the old WordPress default theme, so it was definitely in need of change.

TwentyTen is clean and simple (and the theme I use on my blog) and takes advantage of the custom backgrounds, headers and menus to make it easy to change the look and feel without having to get into the CSS.

TwentyTen default theme preview

TwentyTen default theme preview

If you want to try TwentyTen out, you can find it in the WordPress theme repository and through the Themes > ‘Install’ section in your WordPress admin by searching ‘twentyten’.

WordPress admin realign

If you follow me on Twitter, you might have heard me whining a bit about the new WordPress admin realign. I’ll call it a realign as they’ve only made some changes, not redesigned the lot.

The idea behind these changes is that it brings the content into focus, and it is more legible to read dark text on a light background so it makes the WordPress admin, which is now entirely dark on light, more accessible.

WordPress 3.0 admin

WordPress 3.0 admin

I have the utmost respect for those working on the WordPress admin interface, and have briefly discussed the decisions with John O’Nolan, member of the Core WordPress UI Team, on Twitter. I appreciate their reasons behind the changes and that it must be very difficult to please everybody in these scenarios. (Here comes the but)

But I find the new admin harder to use, and I don’t believe it is out of a lack of familiarity. Here are my reasons:

  1. There is a general lack of contrast across all the admin

WordPress 3.0 admin

It is all dark grey against white and light grey backgrounds separated by light grey border lines. My eye isn’t drawn to any different elements anymore, it doesn’t suggest so strongly where I am or where I should go first. I’m an idiot and need to be led!

  1. When you select the title text box when creating a new post, the label for the text box disappears

The title input box in the WordPress editor with no label text

Um, what does that empty box do again? (title input in editor)

If you have cognitive issues, I can’t see how this is accessible. Chances are, you’ll select that first input box available and then be clueless about what that box is for. The label-in-an-input-box isn’t yet a strong-enough standard to make it obvious that you need to deselect the text input. It’s more of a consistent pattern for search input boxes, where the function is made obvious by the accompanying presence of a ‘Search’ button.

  1. I find dark grey a really peculiar choice of colour for an alert

Grey alert bubble on the WordPress admin

Grey alert bubble

This little alert that lets you know if you have comments, or need to update your plugins or WordPress installation, used to be orange. Orange stood out against the mostly white/grey/blue colour scheme and was clearly there to be noticed. Orange signifies something to be aware about, not quite red being something dangerous but not green for ‘everything is fine’. Even though this new alert style is a reversible of the dark-on-light text shown everywhere else, I think it’s a very unusual choice to have something less colourful for an alert.

To be fair these changes haven’t made the admin unusable. I am being picky. It would be very difficult to undo all the great work of Jane Wells and the UI team since WordPress 2.7.

This post has three parts. This is part three. Visit the other parts below:

One comment

  1. pronebird
    The dark gray is not flaring but better than annoying orange(maybe even closer to red) that was before, in WordPress 2.6.