Title: Custom fields in Widgets
Last modified: August 19, 2016

---

# Custom fields in Widgets

 *  [simplethemes](https://wordpress.org/support/users/simplethemes/)
 * (@simplethemes)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-in-widgets-1/)
 * Hi, I’m wanting to add a simple text-based field to all Widgets in my theme. 
   The purpose of this would be to add alternate styling to various widgets by appending
   a CSS class to the output of before_widget.
 * Is this possible?
 * Example: [http://d.pr/XDy7](http://d.pr/XDy7)
    The above would output: `<div 
   class="widget-red">..`

The topic ‘Custom fields in Widgets’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [simplethemes](https://wordpress.org/support/users/simplethemes/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-in-widgets-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
