Title: Reset widgets ID
Last modified: August 21, 2016

---

# Reset widgets ID

 *  [googlebot](https://wordpress.org/support/users/googlebot/)
 * (@googlebot)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/reset-widgets-id/)
 * I noticed that every time I remove a widget in the widget area and add the same
   widget back again I get an incremental ID, this is affecting my css that is styling
   widgets base on their ID.
 * For example my-widget-1 is deleted, when I re-add my-widget it gets now assigned
   an id of 2, if I delete my-widget-2 and add it again it becomes my-widget-3 and
   so on
 * Is there any way to reset the ID so when I add my-widget it starts from id 1 
   again? Perhaps from the DB?
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/reset-widgets-id/#post-4761037)
 * This plugin may be of use to you:
 * [http://wordpress.org/plugins/widget-css-classes/](http://wordpress.org/plugins/widget-css-classes/)
 *  Thread Starter [googlebot](https://wordpress.org/support/users/googlebot/)
 * (@googlebot)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/reset-widgets-id/#post-4761090)
 * Thanks but I prefer to avoid adding another plugin if I can reset the widgets
   ID from the database so when a new widget is dragged into the widget are it’s
   ID starts from 1.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reset widgets ID’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [reset](https://wordpress.org/support/topic-tag/reset/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [googlebot](https://wordpress.org/support/users/googlebot/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/reset-widgets-id/#post-4761090)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
