WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Purify WordPress Menus

Slim down the HTML code of WordPress menus to only the CSS classes and ID attributes your theme needs to improve page speed

Less code, higher page speed

This plugin deletes the CSS classes you do not need in a navigation menu and page menu. It slims down the HTML code of WordPress menus to the only neccessary CSS classes you want for your theme. This results in less HTML code and so in higher page speed.

No undesiderable visual effects

The visual appereance of menus in the frontend remains unchanged in most cases. If you should see an undesirable visual effect to the menus in your theme you can activate the needed CSS classes on the plugin's options page.

Deactivate it and keep your settings

If you deactivate the plugin, your settings remains. If you activate the plugin again your last settings will be used. You do not need to go over all settings again.

Residue-free deletion

If you delete the plugin via the WordPress 'Plugin' menu, your settings will be deleted, too. No useless option remains in the WordPress database.

Default setting: Mark only the current menu item

The default setting is to output only the CSS classes for the current menu item.

Stops displaying CSS classes of parents and ancestors of menu items

Menu items which are parents of the current item will not be classified as ancestors additionally. The output of class="current-menu-ancestor current-menu-parent" is reduced to class="current-menu-parent".

Stops displaying CSS classes of outdated page menus

This plugin filters out the old CSS classes of page menus in navigation menus. Using the WordPress menu configurator the page menu classes are not necessary anymore.

Stops displaying #menu-{id}

This plugin deletes the ID attribute of each menu item. In most cases the ID of every menu item is not needed.

Uses WordPress standard functions

This plugin hooks into the WordPress core functions wp_nav_menu() and wp_page_menu(). It changed the results of both functions to the settings you chose.

Switch on and off every CSS menu item class

You can:

  • select and deselect in detail every CSS menu item class the WordPress core functions wp_nav_menu() and wp_page_menu() generate.
  • control whether the id attribute of each navigation menu item is printed out or not.
  • control whether parent items will be additionally classified as ancestors item or not. You can activate to print out both classes on parent items or just parents classes.
  • control whether navigation menus will be additionally classified with the older page menu classes for compatibility or not.

Requires: 3.0 or higher
Compatible up to: 4.0
Last Updated: 2014-9-6
Downloads: 6,735

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1