ChickenFur
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Final solution:
Put this in my functions.php file and then through customizr added the secondary menu.
<?php add_action( 'init', 'register_secondary_menu' ); // this registers your menu with WP function register_secondary_menu() { if ( function_exists( 'register_nav_menu' ) ) { register_nav_menu( 'secondary-menu', 'Secondary Menu' ); } } // Select the add_action you need, depending on where you want to add the menu and disable the rest: //add_action('__before_header', 'display_secondary_menu'); // use this line to add above header add_action('__after_header', 'display_secondary_menu', 1000, 0); // use this to add after header //add_action('__before_footer', 'display_secondary_menu'); // use this line to add above footer //add_action('wp_footer', 'display_secondary_menu', 1000, 0); // use this to add before credits // display function for your menu: function display_secondary_menu() { echo ( has_nav_menu( 'secondary-menu' ) ? wp_nav_menu ( array ( 'theme_location' => 'secondary-menu', 'container_id' => 'secondary-menu', 'container_class' => 'secondary-menu' ) ).'<div class="clearall"></div>' : '' ); } ?>Making a little progress, found lots of great code snippets here:
http://www.themesandco.com/code-snippets/
http://www.themesandco.com/snippet/add-widget-area-header/
I will update if I find a solution.
I can see in the file class-header-menu.php
add_action ( '__navbar' , array( $this , 'tc_menu_display' ), 30, 1);So how could I call
do_action('__navbar')and set the menu that I want to be displayed.
Thanks!
I would like to be able to just stick with their theme and develop my page as a standalone page that displays in the main pane.
Viewing 5 replies - 1 through 5 (of 5 total)