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.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.