Screencast: Part 12: Menus for Our Custom WordPress Theme

Add this code to your header.php page

[prettify]

‘Main Menu’,
‘container’ => ‘nav’
)
); ?>
[/prettify]

Add this code to your functions.php page

[prettify]
Links used in Screencast

Adding a WordPress menu to your theme
wp_nav_menu

Download the finished files here

custom-wordpress-theme-step-12-finished

Back to Main WordPress Page with all Tutorial Links

Back to Main WordPress Page with list of tutorials on creating a WordPress custom theme from scratch.

Leave a Reply

Your email address will not be published. Required fields are marked *