• Hello,

    I try for several weeks, alone or with help, operate my child theme. Without success. No changes can be taken into account (Personalization > Home) by the child template!

    Problem with the parent template? Provided in the next update?

    Thank you for your answer

Viewing 11 replies - 1 through 11 (of 11 total)
  • Theme Author NimbusThemes

    (@nimbusthemes)

    Zailana,

    Sorry for the trouble you’re having. Just so I understand correctly – the Child Theme you’ve created does not work and any changes you have in it are not being registered? Is there any way you can share your Child Theme with me?

    Best,
    NimbusThemes

    Thread Starter zailana

    (@zailana)

    Hello,

    Thank you for your answer.

    Yes, here is the function.php file :

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }

    Here is the style.css :

    /*
     Theme Name:   Simple Business Pro Child
     Theme URI:    https://nimbusthemes.com/wordpress-themes/simple-business/
     Description:  Simple Business Pro Child Theme
     Author:       Nimbus Themes
     Author URI:   https://nimbusthemes.com/
     Template:     simple-business-pro
     Version:      2.0.7
     Text Domain:  simple-business-pro-child
    */

    Thank you for your help !

    Theme Author NimbusThemes

    (@nimbusthemes)

    Hello,

    This is probably happening because you’re not including your child theme stylesheet anywhere. Please try this:

    ?php
    function theme_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() . '/style.css',
            array( $parent_style )
        );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    ?>

    More info here: https://codex.www.ads-software.com/Child_Themes

    Thread Starter zailana

    (@zailana)

    Thanks for your feedback.

    I tried with your code, but nothing happens. The child theme doesn’t work: the changes to the parent topic is not addressed by the child and when I want to change the child theme that doesn’t work either.

    Thank you, I know the site. I tried with several code to the functions.php and each time it does not work.

    Theme Author NimbusThemes

    (@nimbusthemes)

    Can you share the URL of your website with me? With the Child Theme enabled?

    Thread Starter zailana

    (@zailana)

    I can’t let activate the theme child car the users would not otherwise incomplete site/they would see a broken website. Does not exist another way?

    Theme Author NimbusThemes

    (@nimbusthemes)

    Please zip your child theme and send it to [email protected] – I’ll take a look.

    Thread Starter zailana

    (@zailana)

    Ok, I will send you a mail. Thanks

    I am in the same boat as zailana.

    I have followed this tutorial: https://codex.www.ads-software.com/Child_Themes and other sources for help. My child theme is not picking up all the css files from the parent theme even after enqueuing them all.

    I too will zip up my child theme and send it to you to have a look, if you don’t mind.

    Thanks

    Theme Author NimbusThemes

    (@nimbusthemes)

    Sure dwang19 – I’d be happy to help.

    Okay I’ve sent the email and attachment again, check your junk/spam folder in case it ended up there, I gave it a subject line of: Child Theme Help.

    Much appreciated!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Child template’ is closed to new replies.