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 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.