Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress 3.7 Complete: Third Edition

You're reading from   WordPress 3.7 Complete: Third Edition Nothing has simplified website production quite as effectively as WordPress, and this book makes it easier still to build a fully featured site of your own. Packed with screenshots and clear instructions, it covers everything you need for success.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781782162407
Length 404 pages
Edition 4th Edition
Concepts
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Introducing WordPress 2. Getting Started FREE CHAPTER 3. Creating Blog Content 4. Pages, Menus, Media Library, and More 5. Plugins and Widgets 6. Choosing and Installing Themes 7. Developing Your Own Theme 8. Feeds, Podcasting, and Offline Blogging 9. Developing Plugins and Widgets 10. Community Blogging 11. Creating a Non-blog Website Part One – The Basics 12. Creating a Non-blog Website Part Two – Community Websites and Custom Content Elements Index

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 the 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, Pages, Menus, Media Library, and More).

The good news I have for you right now is that menus are already enabled in the structure of the theme we're creating here. 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 and then assigns it to the area indicated as primary, it will show up in that spot. The same goes for the other menu area, footer_menu, which is placed in the footer.

If you want to have more than one navigation menu in your theme, you can register multiple navigation menu locations and let the user create multiple menus and choose which menu goes in which location. To learn more about that, check out this page of the codex...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image