O'Reilly logo

WordPress 2.8 Themes Cookbook by Lee Jordan, Nick Ohrn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making theme components drag-and-drop

The best websites provide means for their users to shape a custom experience, allowing them to interact with site content and components in the way that they want to. In this recipe, you'll learn how to create a drag-and-drop interface for site components. You'll let users order your content in the way that they want to experience it, letting each individual user decide what is most important.

Getting started

To start, you should have a basic theme skeleton created with at least a style.css file, and an index.php file. For this recipe, you'll create a custom page template to demonstrate the technique, so you should have some knowledge of page templates.

How to do it...

The first component of the drag-and-drop ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required