Home Forums Pro Themes Travel Master Pro Featured image for trip

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #122660
    wensolutions
    Keymaster

    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.

    #122718

    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)

    #122761
    wensolutions
    Keymaster

    Hello,

    Also, add CSS we provided to you in the Additional CSS of customization section.

    Hope this helps.

    Regards.

Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.