• Resolved GBomer

    (@craftulate)


    OK so this is the text I have added to my new child theme style.css:

    /*
    Theme Name: Hueman Child
    Template: Hueman
    
    */
    @import url("webroot/wp-content/themes/hueman/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    When I try to activate the child theme in WP it says it is broken:

    Hueman Child The parent theme is missing. Please install the “Hueman” parent theme.

    As you can tell I am new to this area of coding, any help as to where I’m going wrong greatly appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try:

    /*
    Theme Name: Hueman Child
    Template: hueman
    
    */
    @import url("webroot/wp-content/themes/hueman/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
    Thread Starter GBomer

    (@craftulate)

    Thanks esmi, that worked! So now I can activate my child theme – great!

    Except that, when I do that, all the formatting of my site disappears. Eg – no sidebars. I haven’t added anything else to the code given above.

    I’ve checked the WP how-to on creating child themes and there doesn’t seem to be anything essential *after* activating the theme successfully.

    I assumed it would look like the parent theme unless I added anything to the style.css of the child theme?

    Change:

    @import url("webroot/wp-content/themes/hueman/style.css");

    to:

    @import url("../hueman/style.css");

    Thread Starter GBomer

    (@craftulate)

    Sorry that doesn’t seem to make any difference. 🙁

    Thread Starter GBomer

    (@craftulate)

    Is there anyone around who can help me with this? I’d love to get the child theme working!

    Thanks!

    Try this please:

    Copy the whole content of /themes/hueman/style.css and paste it into the /themes/hueman-child/style.css file and then remove the @import url(“…”); part from the style.css located in the child theme’s folder. Keep the main style.css as it is.

    Additionally, if you use any cache or optimization plugin (like the ones that combine all the JS/CSS file into the one), make sure that you disable them while you are playing with CSS.

    Thread Starter GBomer

    (@craftulate)

    That worked. Thanks!

    Great, you’re welcome 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Setting up child theme – help needed’ is closed to new replies.