I am currently building a site that is using enfold. The development is on Windows. I back up the site and the database, and everything works fine when I do a restore except the theme settings. I have confirmed the whole file structure remains the same by doing a compare, and the db als upgrades correctly.
IS there something I am missing here. I have read that the theme settings are in wp_options and wp_postmeta, and I have confirmed they are being restored correctly.
If its stored in wp_options, what is the option_name that are used so I can check to make sure the restore is indeed working correctly.
Hi!
The name of the field in wp_options
is the folder name of the current theme activated, so if you’re on a default installation it should be enfold
, if you’re using a child theme however it would be the name of the child theme folder name.
Cheers!
Josue
Thanks Josue,
The enfold theme is being restored correctly, how the settings are not. For example, header settings and front page settings etc. Custom CSS is also not being restored.
Its possible that its the script I run to upgrade all settings from dev to test environment are the problem, hence the reason I need to know the specifics on where settings are stored.
Hey!
The exact field name is (in wp_options):
avia_options_enfold
enfold
should be changed if your theme folder name is different. It should contain a long JSON-like value that has all the options set in Theme Options.
Cheers!
Josue
Thanks Josue,
Not sure why the restore doesn’t work, but that info is exactly what I need. Thanks for your help.
You are welcome, glad to help :)
Regards,
Josue
Still no joy. I have checked the wp_options and compared between backed up and restored db, only difference is the the logo, but the restored site is not loading the theme settings.
Any other suggestions?
I think I worked it out. My script settings dont account for string size differences.