WordPress.org

Support

Support » Themes and Templates » Creating a Child Theme Not Working

Creating a Child Theme Not Working

  • I’m trying to create a Child Theme for Customizr, but the Dashboard is giving me the following when I try to change the theme to the child:

    Broken Themes
    
    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    
    Name	Description
    Customizr Child\	The parent theme is missing. Please install the "customizr\" parent theme."

    The style.css for the child theme is:

    /*
     Theme Name:     Customizr Child
     Theme URI:      http://getready4greatness.com/customizr-child/
     Description:    Customizr Child Theme
     Author:         Jon G
     Author URI:     http://getready4greatness.com
     Template:       customizr
     Version:        1.0.0
    */
    
    @import url("../customizr/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    I can’t seem to figure out what exactly the dashboard is taking issue with, considering Customizr is running on the site currently, and I haven’t run into any issues prior to this. Help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    @thizzlam – do you have the correct file structure? i.e. the child theme is on the same level as the parent theme? Both should be in the themes folder.

    Not sure if this has anything to do with it (it shouldn’t) but, in order to make everything easier, Customizr child themes do not need the @import for style.css. So now you’re loading it twice, and that probably slows your website a little bit.
    I’m not sure if this is true for older versions of Customizr, but it is for last versions.

    From what I see, something is adding backslashes to your code, if you look at the error. There’s one after the child theme’s name, and one after the parent theme’s name. Might be a plugin, might be a custom function that does a wild preg_replace, or other sorts of find-and-replace you might have added.

    @wpyogi The file structure is correct, the customizr child folder is directly in Themes, not a sub-directory of customizr.

    @acub Removed the @import, and as you assumed, it didn’t change anything. I’ll try to search around and see why it could be adding a backslash to the code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating a Child Theme Not Working’ is closed to new replies.