Support » Fixing WordPress » Child Theme Not Working (but kinda is)

  • yacob555

    (@yacob555)


    I’m trying to create a child theme which doesn’t seem to be working. I’m just at the point where I’m trying to verify that the child theme is making changes.

    With the parent theme, I have a header image uploaded. Once I activate the child theme (only with style.css for now), that icon goes away but I still have the generic styling of the parent them. My understanding is that the parent theme should disappear entirely until I “call it” and the site should be text-only.

    I’ve also attempted to change the body background but this change is not represented, either.

    So, activating the child theme does set the site back to the basic styling of the parent theme, but doesn’t allow any changes. Any ideas why this would be?

    Here’s the entirety of my style.css file.

    /*
    Theme Name: Yodega lecrafts Child
    Theme URI:
    Description: lecrafts Child Theme
    Author: Jacob Jordan
    Author URI: na.com
    Template: lecrafts
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: light, na
    Text Domain: tokoo
    */

    body {
    background-color: lightblue;
    }

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steve Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    Please provide a link to a page on your site where we can see this. Thanks.

    My understanding is that the parent theme should disappear entirely until I “call it” and the site should be text-only.

    No, if you did it right, your child inherits the CSS of the parent. You will have to redo any theme settings, though.

    Thread Starter yacob555

    (@yacob555)

    Thanks for the reply.

    The site is yodega.com/sell

    It was my understanding (from tutorials) that the site would be text-only until you referenced the parent theme with wp_enqueue_style.

    I have the following two lines of code in my style.css but not seeing it reflected on the current site. (Just trying to verify I can make a change with this particular css)

    {
    font-size: 100%;
    font-family: Arial;
    }
    body {
    background-color: lightblue;
    }

    • This reply was modified 4 years ago by yacob555.
    • This reply was modified 4 years ago by yacob555.
    Moderator Steve Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    This is the guide to follow:

    https://codex.wordpress.org/Child_Themes

    The body background *is* light blue.

    Thread Starter yacob555

    (@yacob555)

    Thanks for the link – I’ll definitely be using that.

    Looks like I was betrayed by some type of caching (even though I used “purge varnish” each time). Cost me a few hours that it shouldn’t have!

    Thanks you sincerely for your time!

    Moderator Steve Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    It’s always a good idea to disable all caching while doing theme dev. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Child Theme Not Working (but kinda is)’ is closed to new replies.