The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Starkers Theme and Custom menu wordpress Reply To: Starkers Theme and Custom menu wordpress


Starkers team [wrote their own]( get_template_parts (notice the “s”) function to output parts of template by supplying the function with an array.

get_template_part() loads a file that is located in your theme directory. The code you posted is telling wordpress: go to theme directory and look for primary.php and menu.php file.

Now the code [you need is in the]( functions.php file.

Here is a quick breakdown how to activate the menu:

In your functions.php

‘header’ => __(‘Top Menu’),
‘footer’ => __(‘Bottom Menu’)

Then go to WP Admin, Appearance >> Menus and create your menus.

To call them in your theme use this:

<?php wp_nav_menu(array(‘theme_location’ => ‘header’)); ?>


<?php wp_nav_menu(array(‘theme_location’ => ‘footer’));?>

You can have one or many, and you can name them whatever you like. As long as you are selecting appropriate menus from theme location dropbox you should be good.

Hope that helps,