Hi,
sorry, didn’t had much time last week to have a proper look. Done your last update but it didn’t fix my problem completely. However, it’s working fine except under Kyma Options – can’t make or save any changes.
I really appreciate your offer but I prefer to get my own child theme to work. As it is a new project I can’t tell exactly what I would like to changed – colours, fonts, maybe margins and padding…
I’ll activate my child theme again for you to have a look at it.
https://champions-team.media/
Created child theme as followed:
1. style.css
/*
Theme Name: Kyma Child
Theme URI: https://www.webhuntinfotech.com/
Description: This is a custom child theme I have created.
Author: Thomas Anstoetz
URI: https://www.champions-team.media/
Template: kyma
Version: 0.1
*/
2. functions.php
<?php
add_action( 'wp_enqueue_scripts', 'child_enqueue_styles',99);
function child_enqueue_styles() {
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',get_stylesheet_directory_uri() . '/custom.css', array( $parent_style ));
}
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 );
} );
}
?>
Thanks for your help and patience
Thomas