Currently there's a lot of talk online about owning your own data , and so creating a system for backing up your theme settings is something I have been quite keen to add.
The data isn't personal, but it's something you should have control over, and I think being able to export the settings gives a nice handful of benefits:
- You can test the theme offline, and then take your settings to your online version
- You can backup your theme before making changes, allowing you to test without fear
- You can create a single 'template' and then upload it to multiple sites
- You can give people your website settings, so that they can see what you have done to make your theme work the way it does.
Usage is super simple. One button to download the settings, and one button to upload them.
The downloaded (exported) data is bas64 encoded, I did want to keep it open and easy to read (a simple serialized array) - however when I serialized the info it would become corrupted and wouldn't import again. The easiest answer I could find was to base64 encode things. If anyone has any ideas of an equally simple solution then I would be happy to implement it.



2 Responses to “Theme Settings Import and Export” Leave a reply ›