Skip to content

Instantly share code, notes, and snippets.

@intelliweb
Last active December 14, 2015 21:39
Show Gist options
  • Save intelliweb/5152517 to your computer and use it in GitHub Desktop.
Save intelliweb/5152517 to your computer and use it in GitHub Desktop.
Builder: Add navigation module styling to custom nav menu
<?php
/********************************************
Add the following to functions.php
********************************************/
// Register custom nav menu locations
register_nav_menus( array(
'main_nav' => 'Main Navigation Menu',
'footer_menu' => 'Footer Menu'
) );
/********************************************
Add the following to Builder layout
********************************************/
// Add custom nav menu with builder-module-navigation class for styling
wp_nav_menu( array( 'theme_location' => 'main_nav', 'menu_class' => 'builder-module-navigation clearfix') );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment