ThemeShaper Forums » Thematic

[closed]

Multiple Menus with Thematic

(7 posts)
  • Started 2 years ago by stepintheterrain
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. stepintheterrain
    Member

    I have been looking around at different posts & not quite sure I found what I am looking for. In the event that there was already a post about this I apologize.

    What I am looking to do:
    Header attached to top of the page (already done) using the wordpress menu system and has the branding logo (already done) on the left of the header links (any thoughts how to do this part?)

    In addition I would like to use the wordpress menu system to put at least 1 more menu down the left side of the page. Any potentially up to 3 menus down the left side of the page, 1 above the other. I am fully aware that I will have to style this with css & can do that. I just was not sure what the functions are that are required in order to add at least 1 menu & maybe multiple down the left side of the page.

    Any help on this would be great. And if you need additional information let me know. Thank you!

    Posted 2 years ago #
  2. read the sticky:
    http://forums.themeshaper.com/topic/thematic-menus-demystified-1#post-15282
    part 5 specifically

    Posted 2 years ago #
  3. stepintheterrain
    Member

    thank you! I was actually reading that post earlier (very well done). I saw section 5 but was not completely sure if it applied to what I was looking for. But sounds like it is now, so I will check it out, thank you.

    Posted 2 years ago #
  4. stepintheterrain
    Member

    I registered all the menus & they are showing up fine in wordpress. What I did not see was how I can choose one of those menus to show up at the top of the page & then the other 3 on the left side one by one. Keeping in mine that I would use different styles so that the top menu is styled differently then the 3 left menus. Below is what my functions.php currently looks like:

    // Remove default Thematic actions
    function remove_thematic_actions() {
    remove_action('thematic_header','thematic_access',9);
    }
    add_action('init','remove_thematic_actions');

    // and then add the access div to the hook you want
    add_action('thematic_aboveheader','thematic_access');

    function remove_blogtitle()
    {
    remove_action('thematic_header', 'thematic_blogtitle', 3);
    }
    add_action('init', 'remove_blogtitle');

    // Register the new menus
    function register_my_menus() {
    register_nav_menus(
    array(
    'primary-menu' => __( 'Header Menu' ),
    'sidebar-menu' => __( 'Sidebar Menu' ),
    'sidebar-menu-2' => __( 'Sidebar Menu 2' ),
    'sidebar-menu-3' => __( 'Sidebar Menu 3' ),

    )
    );
    }
    add_action( 'init', 'register_my_menus' );

    Posted 1 year ago #
  5. it's right there in part 5. you have to add wp_nav_menu() to a hook. (or you could add them via widget)

    ///Sidemenus
    function kia_sidebar_menus() {
    
       if ( has_nav_menu( 'sidebar-menu' ) ) {
    	wp_nav_menu( array( 'theme_location' => 'sidebar-menu' ) );
    
        }
    
       if ( has_nav_menu( 'sidebar-menu-2' ) ) {
    	wp_nav_menu( array( 'theme_location' => 'sidebar-menu-2' ) );
    
        }
    
       if ( has_nav_menu( 'sidebar-menu-3' ) ) {
    	wp_nav_menu( array( 'theme_location' => 'sidebar-menu-3' ) );
    
        }
    }
    
    add_action('thematic_abovemainasides','kia_sidebar_menus');
    Posted 1 year ago #
  6. stepintheterrain
    Member

    thank you, I was using a modified version of what you had in part 5. But I switched to the full page template & that explains why the code was not working since I had no abovemainasides for it to show up.

    Posted 1 year ago #
  7. yeah i would prefer there to be a hook to add something above the sidebar that was independent of whether the sidebar is active, but at the moment, there isn't

    Posted 1 year ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.