• I’ve created a child theme for my website correctly I guess? It has my business name above the header, so it seems to be pulling from the parent. But when I make changes to the style.css file not happens on the front end of the website. I’ve tried clearing my cache in wp super cache, I’ve been reading and googling snice 4:00 a.m. with no luck. I hope someone can point me in the right direction.

    My page is created on a subdomain.

    This is my url: https://metalroofing.jrjbroofing.org


    This is what’s in my style.css file.

    /*
    Theme Name: Twenty Ten Child
    Theme URI: https://example.com/twenty-ten-child/
    Description: Twenty Ten Child Theme
    Author: John Doe
    Author URI: https://example.com
    Template: twentyten
    Version: 1.0.0
    */

    @import url(“../twentyten/style.css”);

    /* =Theme customization starts here
    ————————————————————– */

    That’s the only file I have in the child theme so far.

    Thanks in advance for any help on this!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Did you activate the child theme you created?

    It’s still calling the original style.css (from twentyten) so it looks like it’s just the parent theme that’s active.

    Thread Starter fish911

    (@fish911)

    I just deleted the file re-named it and then re-uploaded it still with no luck. I’m uploading it in the cpanel just like other child themes I’ve created? This is really bugging me…. yes I did activate it, but I did just have it deactivated about 2 minutes ago while trying to fix it.

    Thank you so much for the quick response…

    anymore thoughts?

    Thread Starter fish911

    (@fish911)

    I found this while reading on the subject and i was able to replicate the error “cheating huh?” but was not able to fix my issue. Kind of weird to me.

    I followed the “renaming/removing the space” advice from wittyoctopus, but I also had an ah-ha moment when I realized I was not installing my child theme properly. I had simply been putting the child theme folder in the “themes” directory and refreshing my browser instead of uploading a zipped folder and actually installing it.

    It wasn’t until I removed the folder and refreshed the page to delete it, and a WordPress message appeared on a gray background that said “cheatin’ huh?” – I then realized I was doing it wrong ?? Oops!

    Any thoughts on this?

    I had simply been putting the child theme folder in the “themes” directory and refreshing my browser instead of uploading a zipped folder and actually installing it.

    Uploading a theme in the wp-content/themes directory should work as well. However, you still need to activate it regardless.

    As long as you still have the parent theme activated, I won’t be able to see what could be wrong, sorry!

    Thread Starter fish911

    (@fish911)

    Sorry the parents no-longer activated I will leave it that way.

    Thank you!

    OK, but it’s working good? I see you put a body background color in the child theme’s style.css, and it’s definitely applied to your site.

    Keep in mind though, that as long as you have this line in your child theme’s style.css file:

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

    …the original parent theme’s styles will be loaded first! Everything else you put in the child’s styles.css file, will be added to that.

    Thread Starter fish911

    (@fish911)

    Sorry it’s no longer activated…

    Thread Starter fish911

    (@fish911)

    Hmm I can’t see the style change? I wonder why? On my parent theme I have a header image I wonder why that’s not displayed?

    Only CSS styles and templates are taken from the parent theme (and a few settings that are not directly theme-related).

    Some customized settings (such as header image, background image, etc.) that you’ve set in the parent theme, will not be transferred but will only apply when the parent theme is actually active.

    So in your case, the header image you set in the parent theme will not be used in the child theme — you’ll have to set it in the child theme itself again.

    Thread Starter fish911

    (@fish911)

    Thanks for the answer, that cleared it up for me.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘TwentyTen Child theme css changes don't take effect ?’ is closed to new replies.