ThemeShaper Forums » Thematic

[closed]

Please advice how to activate the drop down menu for sidebar widgets

(2 posts)
  • Started 3 years ago by LunaPlina
  • Latest reply from middlesister
  • This topic is not resolved
  1. LunaPlina
    Member

    Hi,
    I'm using a couple of menus dropped in several sidebars.

    // Register the new menus
    function register_my_menus() {
    register_nav_menus(
    array(
    'primary-menu' => __( 'Main Menu' ),
    'second-menu' => __( 'Individual Menu' ),
    'third-menu' => __( 'Institutional Menu' ),
    'forth-menu' => __( 'Footer Menu' ),
    'fifth-menu' => __( 'Site Map' )
    )
    );
    }
    add_action( 'init', 'register_my_menus' );

    The html code I get is:
    (so there s NO superfish class added...)

    '<div id="menu_widget">

    • <div class="menu-individual-container">
      <ul class="menu" id="menu-individual">
      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-170" id="menu-item-170">client log in
    • <li class="menu-item menu-item-type-custom menu-item-object-custom current-menu-ancestor current-menu-parent menu-item-136" id="menu-item-136">advising individuals
      <ul class="sub-menu">
      <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-24" id="menu-item-24">Welcome
      <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-26" id="menu-item-26">How We Work With Clients
      <li class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current-menu-ancestor current-menu-parent menu-item-177" id="menu-item-177">How We Manage Wealth
      <ul class="sub-menu">
      <li class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item menu-item-178" id="menu-item-178">Philosophy
      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-183" id="menu-item-183">Portfolio Construction
      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-191" id="menu-item-191">Rigorous Due Diligence

    </div>

    </div>'

    Please advice.
    Thanks in advance

    Posted 3 years ago #
  2. middlesister
    Member

    Usually you can add the superfish class when you are calling wp_nav_menu to display your menu in your theme. But it looks like you are displaying your menu in a widget, and I don't know if you can add a css class to a widget through functions.php. Take a look at http://wordpress.org/extend/plugins/advanced-menu-widget/ instead and see if it will meet your needs.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.