Posts by FranklinM2

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

Thanks for giving it a spin. I think this will work with any theme if you set it up properly.

You need to get the widgets data using https://wordpress.org/plugins/widget-importer-exporter/ rename the file to widgets.json instead on widgets.wie

The trick with the menu is knowing which menus have been exported in the content.xml and where they are placed in the theme. Just look for the

register_nav_menu( ); 

functions to see what the menu name and location and add them to the set_demo_menus function.

The first two php errors you are seeing are just that, warnings. I think the WordPress Importer library hasn’t been updated yet.

The third warning might be because you haven’t define the theme options file yet. Not sure.

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

Try out the new version. It is now standalone. You can test with default WordPress theme.

https://github.com/FrankM1/radium-one-click-demo-install
141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

I think I forgot to mention you need to load up some files. Try adding this to the top of the init file.

require_once(  dirname( __FILE__ ) .'/importer/radium-importer.php' ); //load data importer admin 
141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

I think I figured out how to import everything using a one click import system. This includes widgets, navigation menus, content and theme options the only thing left is setting those settings in Settings->Reading.

For widgets: I discovered a plugin called Widget Settings Importer/Exporter https://wordpress.org/plugins/widget-settings-importexport/

This plugin exports the widgets as a json file. And as you may know json is awesome.

For menus I use a function like this. It runs after the content has finished importing.
function set_demo_menus(){

        //Import Menus
        $top_menu = get_term_by('name', 'Top Menu', 'nav_menu');
        $main_menu = get_term_by('name', 'Main Menu', 'nav_menu');
        $footer_menu = get_term_by('name', 'Footer Menu', 'nav_menu');

        set_theme_mod( 'nav_menu_locations' , array('top-menu' => $top_menu->term_id, 'primary' => $main_menu->term_id, 'footer-menu' => $footer_menu->term_id ) );

    }

You can see the full code on github here https://github.com/FrankM1/radium-one-click-demo-install You may need to make modification on how theme options are saved because this is different for each framework.

Feel free to share, fork or whatever.

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

100%! whoa, I did’t expect that :) it’s awesome.

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

Happy birthday Envato. :)

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says
141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

HI @fireform,

Now that you mention it I have noticed it too. I’ll look into the code and see what’s going on.

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

I’ve updated the gist to version 2.4.0. Thanks @artless

Main: https://gist.github.com/FrankM1/6327490
Config: https://gist.github.com/FrankM1/6327495

As always test before deploying.

141 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 3 years
+2 more
FranklinM2 says

I love it. Esp the soundtrack. Great job. Two thumbs up. :)

by
by
by
by
by
by