Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.