Support » Plugin: Responsive Select Menu » [Plugin: Responsive Select Menu] target only one menu

  • Hi, and thanks for your plugin!

    I would like to know if it is possible to target only one menu, and not every menu in the page. I call my different menu with:

    wp_nav_menu(array(‘menu’=>’Main’));
    wp_nav_menu(array(‘menu’=>’Footer_01’));
    etc…

    I looked inside the code of your plugin, but I can’t find where I can put an IF to check if is the Main 🙁

    thanks a lot!

    http://wordpress.org/extend/plugins/responsive-select-menu/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi somtam,

    At this point it will always target all menus (it’s very simple). But I’ll try to add the ability to target specific theme_locations in the future. 🙂

    Best,

    Chris

    ok, I’m going to try to custom for the website i’m making.
    Thanks for answer.

    My hacky solution was to set the plugin to a max-width of 100px so it would never switch from menu to select. Then I added display:none to my menu at my real breakpoint and display block to the select.

    that’s a good and simple idea.
    thanks!

    Plugin Author sevenspark

    (@sevenspark)

    1.2 now supports selective application of the menu 🙂

    Hello and thanks for reply and make your plugin even better!
    But I have a problem… I do not understand how to select the menu on which I want to apply your responsive menu.
    In the options of your plugin I already set on OFF the Active all theme locations.
    In my Appereance > Menu I have several menu I use in my template. I call them with the function <?php wp_nav_menu(array(‘menu’=>’main’)); ?>.

    thanks!

    Plugin Author sevenspark

    (@sevenspark)

    You need to use the ‘theme_location’ parameter rather than the ‘menu’ parameter 🙂

    Please see http://codex.wordpress.org/Function_Reference/wp_nav_menu and http://codex.wordpress.org/Function_Reference/register_nav_menu

    Best,

    Chris

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Responsive Select Menu] target only one menu’ is closed to new replies.