Does anyone know how I can get four sidebar widgets to have different background colours? At the moment they're all the same.
If they are all the same type of widget (ex: all text widgets) you can use the id that WordPress outputs for each widget and target that with CSS, but you will run into an issue if you ever change your widgets.
If you use Chrome Inspector or Firebug, you can see the id of each widget.
If you are targeting different types of widgets (ex: text, RSS, recent posts, etc) you can use target the widget classes, which will still work if the widgets are changed later on.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!