WordPress plugin intelligence profile

Dropdown Menus

Display your WordPress menus as a dropdown select box. Great for mobile designs.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.5
Current version1.0
WordPress coverageTested up to WordPress 3.5
Minimum stackWP 3.0 · PHP —
Directory statusactive
Last directory update16 Jan 201313y ago
Active installations300Adoption metric — not a quality score
WordPress.org rating4.4 / 5 from 5 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Dropdown Menus version 1.0 as active, updated 13y ago and tested up to WordPress 3.5.

Overview

About this plugin

Sometimes for mobile design or more generally small-screen design it can be beneficial to save space by using a dropdown for your navigation.

This plugin provides a way to display your custom menus as dropdowns either using a widget or a function call and can be used as an include in any theme.

Usage

If you are using the plugin with a theme you can use the function dropdown_menu() in place of calls to wp_nav_menu().

The dropdown_menu() function takes the same arguments as wp_nav_menu() with the addition of three extras:

php dropdown_menu( array(

// You can alter the blanking text eg. "- Menu Name -" using the following 'dropdown_title' => '-- Main Menu --',

// indent_string is a string that gets output before the title of a // sub-menu item. It is repeated twice for sub-sub-menu items and so on 'indent_string' => '- ',

// indent_after is an optional string to output after the indent_string // if the item is a sub-menu item 'indent_after' => ''

>

You can extend and alter the output of the dropdowns using the output filters available in the code.

current-menu-ancestor classes.

Filters/Hooks

dropdown_blank_item_text

>

If you want to show the menu title as the blank item text use the follwing code:

php add_filter( 'dropdown_blank_item_text', 'dropdown_menu_use_menu_title', 10, 2 ); function dropdown_menu_use_menu_title( $title, $args ) { return '- '. $args->menu->name. >

dropdown_menus_indent_string

>

dropdown_menus_indent_after

>

dropdown_menus_class

Use this if you find you get class name or CSS conflicts, for example with Twitter Bootstrap.

>

dropdown_menus_select_current

Use this filter to stop the output of the selected="selected" attribute. Useful if you prefer to show the blank option on every page.

>

Can I make sure this plugin is available to my theme?

If your theme requires this plugin to be available it will work as a simple include. php file.

php file:

php if (! >

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • dropdowns
  • menus
  • mobile
  • navigation
  • ui
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.5

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.5.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.5
Minimum requirementsWordPress 3.0 · PHP not listed
Update activity16 Jan 201313y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.