- This topic has 1 reply, 2 voices, and was last updated 5 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › Mezze › Upgrade Mezze to Mezze Pro and keep content
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?
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!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |