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

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

    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?



    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,


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.