WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Responsive Select Menu
[resolved] Need different names for menus on same page (3 posts)

  1. Hypersonic
    Member
    Posted 3 months ago #

    There's a field to choose the menu's title. Can we have different names for each menu on the same page?

    Thanks!

    https://wordpress.org/plugins/jquery-responsive-select-menu/

  2. Mickey Kay
    Member
    Plugin Author

    Posted 3 months ago #

    Hi Hypersonic,

    This functionality is not included in JRSM, but it is something you could accomplish fairly quickly some custom jQuery of your own.

    1. Install a plugin like Scripts n Styles that lets you add your own custom jQuery.

    2. Add the following code (in Scripts n Styles, you'll want to add this in the section labelled "end of the body tag" to make sure it runs after JRSM:

    jQuery(document).ready(function() {
        jQuery('.jrsm-0 option').first().text('New menu title!');
    });

    You'll just need to modify .jrsm-0 to match the class of the JRSM menu you want to re-title.

  3. Hypersonic
    Member
    Posted 3 months ago #

    My theme framework has a text area to enter footer scripts, so I didn't need Scripts n Styles. I put this code in there and it worked like a charm!

    Thanks for the simple yet fantastic plugin, Mickey!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags