Support » Theme: Responsive » Can't activate my child theme

  • I had responsive child theme activated and after I deactivated it to fix some issues and then activated back, my child theme is not available in the themes list, just a responsive theme and everything on the web site is messed up.
    In Appearance>Themes – it is now said Broken Themes:
    Responsive Child Theme
    Theme URI: http://cyberchimps.com/guide/child-theme-exampl/
    Description: Responsive Child Theme
    Template: responsive
    Version: 1.0.0
    Author: Iryna
    Author URI: https://cyberchimps.com/
    License: GNU General Public License
    License URI: license.txt

    It is said that Template is missing.

    Please advice me how do I get it back?

Viewing 10 replies - 1 through 10 (of 10 total)
  • You probably need to edit the style.css file in your child theme folder.
    http://codex.wordpress.org/Child_Themes has the info on what values are expected.

    Thank you!

    Hi,

    Sorry to bother again with this topic, but I’m having this issue once again. And the steps I tried last time don’t seem to be working now. Last time somehow my style.css displayed everything in one line, so I had to made it some changes to display normally as before and it worked.

    I’ve looked at the link you sent me, but I don’t quite understand what should i change in my style.css to make it work. Is it about using wp_enqueue_style()in my “functions.php” instead of @import? How do I modify that code for my theme?

    Please, advice me.

    Your style.css file in the child folder should contain some information so WP knows it’s a child theme, a child theme of what main theme etc.

    You mentioned a problem with line breaks in your style.css; perhaps you can try editing the style.css file directly from the admin interface? You’ll find it under Appearance -> Editor.

    This line would be of particular importance for child themes, and I imagine it needs to be on a separate line (this is a guess):
    Template: responsive

    Well, I guess it contains that info. Currently I have this in my style.css. I uploaded it from official cyberchips website and just added @import url at the bottom.
    /*
    Theme Name: Responsive Child Theme
    Theme URI: http://cyberchimps.com/guide/child-theme-example/
    Description: Responsive Child Theme
    Template: responsive
    Version: 1.0.0
    Author: CyberChimps
    Author URI: https://cyberchimps.com/
    License: GNU General Public License
    License URI: license.txt
    */
    @import url(“../responsive/core/css/style.css”);

    I don’t know what else could be changed.
    But how do I edit the style.css from admin interface if my child theme is not activated, just a responsive theme?

    I was afraid that might not be possible. Too bad.
    You’ll have to use an FTP program til access the file that way.
    But you already know that gives problems with the line breaks. If you don’t use notepad++ already, you could give it a go.

    Thanks! I played around with it a bit.
    What is strange, that when I looked at my style.css in FTP – it looked ok, every line was on its own place. But when I copied that file from FTP to my computer and opened it, it was just one long line. I don’t understand why is that so. So, I made corrections manually on my computer and then uploaded corrected file to FTP and voila my child theme pops up again:)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Maybe you were using a minification plugin? Or maybe your server didn’t understand the line-endings that were in that file to begin with?

    No, I haven’t used that plugin. When the first time that problem happened, I uploaded my whole css file to a web-site (don’t remember the name) and made it look decent with separate lines. And then I uploaded it back to FTP. But I don’t understand why that style.css file looked normal only in FTP, not on my computer when I copied it.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Probably the line ending reason then

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can't activate my child theme’ is closed to new replies.