• Resolved sparklogix

    (@mybenson)


    I have a custom parent/child theme that works just fine. I duplicated both the parent/child theme files and gave them different names (the files and within both stylesheets). I installed the new parent/child themes on the same site, and while I can see the new parent theme in the Themes, I still get this message for the broken Child theme at the bottom of the page:

    The parent theme is missing. Please install the “Respondo Company” parent theme.

    I’ve checked and rechecked and the parent theme style.css file has the correct name and is the same name called in the child theme style.css file.

    The child theme style.css file looks like this:

    /*
    Theme Name: My Theme Name Child Theme
    Theme URI: https://www.themeurlhere.com/
    Author: author name here
    Author URI: https://www.myurlhere.com/
    Description: description here
    Version: 1.0
    Template: My Theme Name
    */

    As I said, this was copied exactly from a theme that is working perfectly, so why would it say the parent theme is missing? I can actually activate the parent theme and it works fine, but I need to be able to activate the Child theme.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You don’t have an @import line in the above… Also here:

    Template: My Theme Name

    “My Theme Name” has to be the name that’s on the parent theme folder, as does the @import line theme name

    Where did you download that theme from?

    Thread Starter sparklogix

    (@mybenson)

    Sorry, I left that out of my code above. I do have an import line:

    /*
    Theme Name: My Theme Name Child Theme
    Theme URI: https://www.themeurlhere.com/
    Author: author name here
    Author URI: https://www.myurlhere.com/
    Description: description here
    Version: 1.0
    Template: My Theme Name
    */
    
    @import url("../My-Theme-Name/style.css");
    Thread Starter sparklogix

    (@mybenson)

    @krishna, it’s a custom theme. That is not the theme name, it’s just changed for the sake of this forum.

    These are not the same:

    My Theme Name
    My-Theme-Name

    Thread Starter sparklogix

    (@mybenson)

    But the folder that the style.css file is in has hyphens. Folders can’t have spaces, can they?

    No they cannot, but those names need to be identical to what’s on the parent theme folder for the child theme to work.

    Thread Starter sparklogix

    (@mybenson)

    So a theme name can’t have spaces? Because the only way I can get this to work is if I remove the spaces from the theme name and the folder names. I’d really prefer my theme to have the words spaced. Seems odd if I can’t get that to happen.

    Can’t have spaces in those locations no. They can here:

    Theme Name: My Theme Name Child Theme

    Thread Starter sparklogix

    (@mybenson)

    Thanks. I must have had a different combo of names before, because I couldn’t get it to work with the spaces in the Theme Name. I appreciate your help ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Parent theme installed and visible but not working?’ is closed to new replies.