Programmatically Assign Menus To Theme Locations In WordPress

In WordPress the user can create their own menus in the CMS area by just going to Appearance -> Menus.

From this page you can then assign these menus to locations in the theme by choosing the theme location for the menu. These theme locations are setup by the theme developer and is done by using the function register_nav_menus();

The register nav menu function can be placed in the functions.php file.

To find out more about this continue reading here.

Image Source: http://www.paulund.co.uk/check-menu-assigned

Leave a Reply

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

Faceebook

ManageWp
Toronto WordPress Web Design - NYTO Group

Programmatically Assign Menus To Theme Locations In WordPress

by Tina time to read: <1 min
0