Book Image

WordPress 3 Complete

By : April Hodge Silver
Book Image

WordPress 3 Complete

By: April Hodge Silver

Overview of this book

<p>Using the WordPress Content Management System, you can create a beautiful, dynamic, and amazing website. WordPress is a flexible and powerful tool that's ideal for creating both blog and non-blog websites. You can customize the features, incorporate your own design, and even write your own plugins with ease. Its versatility and ease of use have attracted a large, enthusiastic, and helpful community of users.</p> <p><em>Wordpress 3 Complete</em> will teach you everything you need to know both to get started with WordPress and also to unlock its massive hidden powers. This book will give you a rapid and straightforward introduction to the rich and powerful features of WordPress and will also get you up and running with WordPress quickly and painlessly. It will help you learn everything WordPress has to offer, from the ground up, so that you can build your own complete website.</p> <p><em>WordPress 3 Complete</em> begins from scratch, starting with how to install WordPress, all the way to the most advanced topics such as creating your own themes, writing plugins, and including custom post types in your website.</p> <p>Starting with downloading and installing the core WordPress software, you will take a detailed look at WordPress settings and also choose the settings that will work best for your website or blog. After that, the book will teach you all about content management functionality for your site – from posts and pages to categories and tags, all the way to links, media, menus, images, galleries, and more. Finally, you'll learn how to create your own themes and plugins to enhance the overall functionality of your website.</p> <p>Once you're done with <em>WordPress 3 Complete</em>, you'll be an expert in everything WordPress, from content management through technical steps such as backing up your site.</p>
Table of Contents (17 chapters)
WordPress 3 Complete
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Enabling a menu in your theme


As of WordPress 3, users can now control more easily what appears in menus. Instead of having to show "all pages" in the menu, you can choose to show a selection of pages and/or categories, and/or other options (as we saw in Chapter 4).

Because we used the wp_nav_menu() function in the header of the site (in the file header.php), if the user creates a menu in Appearance | Menus, the first menu they create will show up in that spot.

For example, here is the Muffin Top theme with the menu I created in Chapter 4:

It looks a little like a disaster, but that just means I need to clean up my CSS to allow for subpages. Another change in the CSS is that the list item's<li>s are no longer given the page-item class, but instead get the menu-item class. Once I clean up my CSS and add a rollover menu, my nav is ready to go:

(You can find the CSS changes I made in the code packet for this chapter.)

If you want to have more than one navigation menu in your theme, you...