Home Forums Free Themes Mezze Upgrade Mezze to Mezze Pro and keep content

This topic contains 1 reply, has 2 voices, and was last updated by  wensolutions 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #95755

    Troy McCormick
    Participant

    I developed a web site with Mezze and then decided to purchase Mezze Pro, but when I activate Mezze Pro it doesn’t use any of the original layout and content. I don’t want to re-create the website again, I just wanted to upgrade the theme. How do I do that?

    #95783

    wensolutions
    Keymaster

    Hello,

    The data/content that you have added in the free version of the theme will work fine even when you update the theme from free to pro.

    However, the settings that you previously specified in the customizer of the theme will no longer be there as in pro version of the theme, you will get a fresh customizer and you should setup the settings manually.

    Alternately, you can also add the given snippet below in the child theme of your pro theme which will get the customizer setting that you specified in the free theme.

    function mezze_pro_child_customizer_options_import() {
    
    if ( get_stylesheet() !== get_template() ) {
       add_filter( 'pre_update_option_theme_mods_' . get_stylesheet(), function ( $value, $old_value ) {
            update_option( 'theme_mods_' . get_template(), $value );
            return $old_value; // prevent update to child theme mods
       }, 10, 2 );
       add_filter( 'pre_option_theme_mods_' . get_stylesheet(), function ( $default ) {
           return get_option( 'theme_mods_' . get_template(), $default );
       } );
    }
    
    }
    
    add_action('init', 'mezze_pro_child_customizer_options_import'); 

    Hope this helps,

    For any further query/confusion, feel free to write us back,

    Regards!!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.