Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I added a menu item to the Appearance menu in the admin area using add_theme_page(). Is there a way to add a class or id to it so I can style it?

I just want to change the font color a little, but I don't want to use any "ul:nth-child(2)" kind of stuff, especially since other plugins add themselves to that menu.

share|improve this question
If you know the URL you can try a css selector based on attribute, checking for exact match like a[href=""] or checking if contains string like a[href*=""] – czerspalace Sep 21 at 23:31

Your Answer


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

Browse other questions tagged or ask your own question.