I accidentally deleted the widgets without dragging it to the inactive widgets section.
I have a backup of all the files and the database but i have changed many things on the site other than the widgets.
Can I only restore the widgets?
3 Answers
You have to search the wp_options
database table for option_name
‘s that contains widget
.
That search results in:
Using the values of your backups, you’ll then proceed to restore the option_value
of the missing widgets. And also the value of the option of sidebars_widgets
.
Goes without saying that backing up before doing this modifications is essential.