WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there a way to allow admin users to add classes to individual menu items in the back end? we have done some individual javascripting and CSS using the title tag, but that is not flexible as it is visible to the end user, so the method is not suited effects needed to be applied to multiple items.

share|improve this question
up vote 6 down vote accepted

This is natively supported by WordPress. In the menus page, click "Screen Options" (in the upper right corner):

Screen Options

Then check "CSS Classes":

Check CSS Classes

You will now have a "CSS Classes" Option for each menu item:

Enter CSS Classes

share|improve this answer
Very nice. I never looked at the screen options for that page. – goldenapples Nov 3 '10 at 15:55
awesome, can we we set this problematically? – Mild Fuzz Nov 4 '10 at 14:16
@Mild Fuzz: Take a look at the DB options table and set it to true on init (should be some autoloaded option). – kaiser Feb 23 '11 at 1:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.