Restore wordpress theme custom css from duplicator database backup

I accidentally overwrote my sites custom css found in the theme options.

After some research I found out that the custom css is stored in the database.

I have a backup of the database from the duplicator plugin, however the backed up code looks different from the one found in phpmyadmin.

Current database from myphpadmin:

a:204:{s:8:”last_tab”;s:2:”33″;s:15:”body-background”;a:7:{s:16:”background-color”;s:0:””;s:17:”background-repeat”;s:0:””;

Duplicator plugin backup database:

a:204:{s:8:”last_tab”;s:1:”5″;s:15:”body-background”;a:7:{s:16:”background-color”;s:0:””;s:17:”background-repeat”;s:0:””;

As you can see there are backslashes on the backup code.

Any ideas of how I might be able to restore just the custom css from the options in the backup database?

Read more here: Restore wordpress theme custom css from duplicator database backup

Leave a Reply

Your email address will not be published. Required fields are marked *