WordPress.org

Ready to get started?Download WordPress

Forums

Responsive Select Menu
Bug: empty items (4 posts)

  1. funsail
    Member
    Posted 1 year ago #

    If you have menu items where the link is '' - not '#', the Responsive Select Menu will try to go to that page and give a 404

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

  2. sevenspark
    Member
    Plugin Author

    Posted 1 year ago #

    You can change line 491 of responsive-select-menu.php to

    if( ( $item->url == '#' || $item->url == '' ) && $responsiveMenuSelect->getSettings()->op( 'exclude-hashes' ) ){

    It used to be that the WordPress Menu System would automatically delete custom menu items that had the URL field set to blank, so I didn't think there was any point in accounting for it. This update will be in the next release.

    Chris

  3. funsail
    Member
    Posted 1 year ago #

    The reason to use '' is that it acts like a proper menu item, while the '#' makes the screen stutter when clicked, esp if the user had scrolled down a bit.

    It would be good to make those links still display in the combo, but not do anything, because otherwise the items all become sub-items of the very top link.

    ie
    a
    -a1
    -a2
    b
    -b1
    -b2

    becomes

    a
    -a1
    -a2
    -b1
    -b2

  4. sevenspark
    Member
    Plugin Author

    Posted 1 year ago #

    Revised in the latest version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.