Plugin info

Total downloads: 14,588
Active installs: 80
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 2/4/2011 (5444 days ago)
Added to WordPress: 9/26/2007 (18 years old)
Minimum WordPress version: 2.2
Tested up to WordPress version: 3.0.5
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5444 days ago

20/100

Is Plugin Name: Classy wp_list_pages abandoned?

Possibly abandoned (last update 5444 days ago).

Compatibility

Requires WordPress: 2.2
Tested up to: 3.0.5
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Navigation Menu IDs & Classes
Rating 4.8/5 (5 reviews)Active installs 100
WP-HideThat
Rating 5.0/5 (1 reviews)Active installs 20
Custom Body Class
Rating 5.0/5 (21 reviews)Active installs 10,000
The School Management – Education & Learning Management
Rating 4.5/5 (15 reviews)Active installs 1,000
Add Custom Body Class
Rating 5.0/5 (8 reviews)Active installs 1,000
Extend Link
Rating 3.0/5 (2 reviews)Active installs 1,000

Description

This plugin adds classes or IDs (your choice) to the LI tags generated by WordPress’ wp_list_pages() and wp_nav_menu() functions.

I found it very frustrating to style the output of these menus without having access to these attributes. This plugin allows you to style the output of wp_list_pages() and wp_nav_menu() with CSS.

The class name or ID is derived from the URL of the page.

For example,

  • /about/ could have the class about.
  • /about/faq/ could have the class about_faq.

If a page does not have a URL (e.g. your front page) the plugin will set the class or id (depending on what you selected) to frontpage, adding whatever prefix you requested.

For example,

  • / could have the class pg_frontpage.

Existing classes (e.g. page_item or current) are left untouched.

Sample output




Configuration

Using the Classy wp_list_pages tab in the options panel you can choose whether you want to use IDs or classes, set the token separator and add an optional token prefix.

You can also specify a class to add to the first and last items in a list.

Pretty straight forward…

Contact and Credits

Written by Alex Dunae ( dunae.ca ), e-mail ‘code’ at the same domain), 2007-09.

Installation

  1. Unzip classy_wp_list_pages.zip in your/wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Navigate the the Classy wp_list_pages tab in the options panel to configure the plugin.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.4.0

  • Add support for wp_nav_menu()
  • Fix frontpage support

1.3.2

  • Fixed register_setting process (thanks to simplistik in the forums).
  • Fixes to the way the last class is applied (thanks to deanoakley in the forums).

1.3.1

  • Fixed bug with nested pages and the last class (thanks to iron77 in the forums).
  • Added uninstall script (thanks to Casemon in the forums).

1.3

  • Ability to specify a class to add to the first and list items in a list.
  • Fixed EOL regex in ‘last’ class regexp.

1.2.2

1.2.1

  • Changed get_option('siteurl') to get_option('home').

1.2

  • Updated options handle for WP 2.7.

1.1.1

  • Added fallback identifier for pages without URLs (thanks to Dave Penfold for the bug report).

1.1

  • Added support for IDs and custom prefixes and separators.

1.0

  • Initial version.