hello,
In the past, I had modified the td_config.php by adding ads blocks like custom ad 6, custom ad 7, custom ad 8… and saved some values there. Today, I want to remove those customizations while keeping the original td_config.php, but the arrays with the values I had set remain in the wp_options table. How can I clean up those unnecessary entries from the td_011_settings option?
thanks
Hi,
You need to clean the database by that code, for this you need to search in wp_options after ‘td_011’ https://i.imgur.com/TeFYf0X.png https://i.imgur.com/nk3Eqi6.png edit the results and search after custom_ad_x (x is the number you want to search) for example, custom_ad_1 – https://i.imgur.com/F1WREcR.png
Also, before making any changes, make sure that you have a full backup of your database.
Thanks, but in the td_011 value I don’t have the entries I’m interested like custom_ad_6, custom_ad_7, etc… and aslo I don’t have custom_ad_1. I only have a small array entries like:
a:30:{s:12:"firstInstall";s:14:"themeInstalled";s:13:"td_log_status";s:3:"off";s:24:"tds_login_sign_in_widget";s:4:"show";s:18:"tds_thumb_td_0x420";s:3:"yes";s:18...
Hi,
Normally, only making a staging should not affect the database where the theme panel settings are set.
Did you make any changes to the database?
Also, before any change, you should have a backup for your website and database. You’ll also, see in the theme panel that there are some theme panel backups – https://forum.tagdiv.com/import-export-theme-settings/
Thank you!
I don’t understand what happened. The site was in production, and even though I had a backup, I couldn’t restore the database because it wasn’t a very up-to-date version. Now I’ve solved the problem and will try creating the staging site again, although I’m a little nervous…