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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress Complete, Sixth Edition

You're reading from   WordPress Complete, Sixth Edition A comprehensive guide to WordPress development from scratch

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787285705
Length 412 pages
Edition 6th Edition
Languages
Concepts
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Introducing WordPress FREE CHAPTER 2. Getting Started with WordPress 3. Creating Blog Content 4. Pages, Media, and Importing/Exporting Content 5. Plugins - What They Are and Why You Need Them 6. Choosing and Installing Themes 7. Customizing Your Website Appearance/Design 8. Developing Your Own Theme 9. Social Media Integration, Podcasting, and HTTPS 10. Developing Plugins, Widgets, and an Introduction to the REST API 11. Community Blogging 12. Creating a Non-Blog Website Part One - The Basics 13. Creating a Non-Blog Website Part Two - E-Commerce Websites and Custom Content Elements

Enabling a menu in your theme

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 header.php file), if the user creates a menu in Appearance | Menus and then assigns it to the area indicated as Primary Menu, it will show up on the site.

If you want to have more than one navigation menu in your theme, you can register multiple navigation menu locations, let the user create multiple menus and choose which menu goes in which location. To learn more about this, check out the Codex at https://codex.wordpress.org/Navigation_Menus.

Learning more
The wp_nav_menu() function is quite powerful and can take a number of parameters that will let you control the classes and IDs, the name of the menu, and more. Take a look here: https://developer...
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