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.

link|improve this question

74% accept rate
feedback

1 Answer

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

link|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
feedback

Your Answer

 
or
required, but never shown

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