• Resolved Thomas

    (@stoetzman)


    Hi

    I created a child-theme as your description. Usually I would do it the traditional way. However, I gave it a go and followed your instructions. If the stylesheet is called custom.css instead of style.css WP can’t find the style sheet. If I change it to style.css I can at least activate the child theme.
    But either way, the customizer doesn’t work anymore.

    Please advise

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Please tell us what changes you want to performed through your “Child-Theme”.

    Then we will create a “Child-Theme” as your requirements and

    provide you a “Child-Theme” package back.

    Please provide a website “URL” for our view.

    Thanks

    [ No bumping please. ]

    Thread Starter Thomas

    (@stoetzman)

    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

    Theme Author WebHunt Infotech

    (@webhuntinfotech)

    Hi,

    Please use this “Child-Theme” package.

    Here a LINK.

    Hope it will work for you.

    Let us know for further assistance.

    Thank You

    Theme Author WebHunt Infotech

    (@webhuntinfotech)

    Hi,

    Did the above solution work for you?

    Thank You

    Thread Starter Thomas

    (@stoetzman)

    Hi,

    yes, it seems to work. However, more than 500 files is quite a lot just for a child theme?

    Don’t get me wrong, I really appreciate your effort and personally I really like your theme, but under the given circumstances (website has to be in German + time restrictions) I have to find an easier solution that meet my client’s needs.

    Regards

    Theme Author WebHunt Infotech

    (@webhuntinfotech)

    Hi @thomas,

    In light version of kyma we are using kirki framework in customizer, due to some reason it’s not working in child theme. so that’s why we give you custom child theme package of kyma.

    In your second issue:- you can translate kyma theme in any language you want. read this documentation

    https://demo.webhuntinfotech.com/blog/2016/01/11/how-to-translate-any-translation-ready-theme/

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘child theme css’ is closed to new replies.