- This topic has 17 replies, 2 voices, and was last updated 4 years, 7 months ago by .
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Travel Master Pro › Featured image for trip
Hello,
We would like to apologize for the trouble.
The issue of the customizer is very unlikely to happen and also the additional code must be added through the child theme to avoid the loss of changes.
The data that you have added won’t be deleted upon switching but the customizer setting might require resetting and it completely depends on the theme.
However, we do have the code using which you can bring the parent customizer setting to the child. So add below-given code in your child theme functions.php file.
function travel_master_pro_child_update_option_vals( $value, $old_value ) {
update_option( 'theme_mods_' . get_template(), $value );
return $old_value; // prevent update to child theme mods
}
function travel_master_pro_child_customizer_default_vals_update( $default ) {
return get_option( 'theme_mods_' . get_template(), $default );
}
function travel_master_pro_child_customizer_parent_options_import() {
if ( get_stylesheet() !== get_template() ) {
add_filter( 'pre_update_option_theme_mods_' . get_stylesheet(), 'travel_master_pro_child_update_option_vals', 10, 2 );
add_filter( 'pre_option_theme_mods_' . get_stylesheet(), 'travel_master_pro_child_customizer_default_vals_update' );
}
}
add_action('init', 'travel_master_pro_child_customizer_parent_options_import');
Also, turning back to the parent theme won’t generate the issue as you have reported. So if you have installed any third-party plugin then please deactivate them and verify the issue.
Hope this helps.
If you have further confusion, let us know.
Regards.
Hello,
thank you. The featured image now working’s good.
In case of the Child Theme I have imported backup and set all the customization once more.
I still have the problem with:
– the trip section (35 000px width) and the anchors in the tab
– the code to remove the title of the archive page (doesn’t work)
Hello,
Also, add CSS we provided to you in the Additional CSS of customization section.
Hope this helps.
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. |