Grow your CSS skills. Land your dream job.

[WP] Widget Parent Class

  • # July 21, 2009 at 12:29 am

    I’m trying to get the hang of the widgets… What I want to do is to create different colored boxes based on a drop down menu. It would be slick if I could just target the widgets parent li to add a class="blue" to it but I’m having trouble finding the right function to do that. Any help? I know I can do it when I declare the function with $widget_ops but I can’t use any instance variables in there…

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".