FrankM1 / radium-one-click-demo-install

Once Click Install for Wordpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redux Framework Export

justiny opened this issue · comments

The exported file created from Redux is a json file. In the init.php file, the $theme_options_file_name is looking for a txt file. Is it possible to link to the json file? or is it necessary to convert the exported Redux options file to a text file?

Thanks!

Hi there,

Any news on this? Does this script still work with Redux Framework? I've tested this myself changing the .json extension to .txt and receive an error that the file cannot be read.

Yea, I couldn't get this to work, unfortunately. Never imported any files. Bummer.

Ok. I got a fix for it.

Yes. You can upload a .json file.
In that case all you have to do is:

Instead of unserializing the .json file
$data = unserialize( trim($data, '###') );

decode the json file as an array
$data = trim($data, '###');
$data = json_decode( $data, true );

This should work with most of the options framework I believe.

Hi guys a redux extension is now available here https://github.com/Webcreations907/WBC-Importer-extension