Creating a Child Theme Not Working (4 posts)

  1. Thizzlam
    Posted 2 years ago #

    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!

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    @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.

  3. acub
    Posted 2 years ago #

    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.

  4. Thizzlam
    Posted 2 years ago #

    @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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.