Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adding menu’s to your WordPress theme > https://since1979.dev/snippet-003-adding-menus-to-your-theme/
<?php
/**
* Insert the "header-menu" into the page.
*
* @see https://since1979.dev/snippet-003-adding-menus-to-your-theme/
*
* @uses wp_nav_menu() https://developer.wordpress.org/reference/functions/add_action/
* @uses array() https://www.php.net/manual/en/function.array.php
*/
wp_nav_menu(
array(
'theme_location' => 'header-menu',
'menu_class' => 'your-own-class'
)
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.