Skip to content

Instantly share code, notes, and snippets.

@netmagik
Created September 28, 2016 15:45
Show Gist options
  • Save netmagik/4a7337d69e0c0b299115ed90e195c6fb to your computer and use it in GitHub Desktop.
Save netmagik/4a7337d69e0c0b299115ed90e195c6fb to your computer and use it in GitHub Desktop.
// Reviews Menu Actions
function register_review_menu() {
register_nav_menu('review-menu',__('Review Us Menu'));
}
add_action('init', 'register_review_menu');
// Use a hook on where you want that menu to appear. Depending on your theme or framework this section will be different.
// I include my menu at the bottom of the header section
add_action( 'fl_header_content_close', 'review_header_content_close');
function review_header_content_close() {
wp_nav_menu(array('theme_location' => 'review-menu'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment