• Resolved josiefox

    (@josiefox)


    Hi!

    Overnight, my child theme has stopped working! I have not applied any updates or changed anything else to my knowledge. Since it stopped working I have tried to re-install wp just in case and made a new child theme but it is still not working.

    The code was working 100% and it seems as if the child theme is no longer overriding the parent theme? I am using Divi theme by Elegant themes.

    Any suggestions?

Viewing 6 replies - 1 through 6 (of 6 total)
  • That’s weird. Try creating a new, blank child theme to narrow down the issue.

    Thread Starter josiefox

    (@josiefox)

    I have tried that. I made a new child theme, completely blank and tried testing it by attempting to change the colour of one particular heading. All very basic code so I am very sure the css is correct but nothing.

    Can you post a link to your site with the child theme active? Also, can you post an example of some code you’ve added that doesn’t work?

    Thread Starter josiefox

    (@josiefox)

    Here is my site.
    This is the page in question, its not linked to the main part of my site yet.

    This is the code that was previously working:

    .et_pb_slide_description aboutslider {
    max-width: 650px;
    text-align:left;
    padding: 40px 0 20px 20px;
    margin: 0 auto;
    float:left;
    }

    .et_pb_slide_description aboutslider h2 {
    padding: 0 0 10px 0;
    font-size:210%;
    margin: 0 auto;
    color: rgb(100,63,136);
    line-height:130%;
    }

    also tried just changing the colour of the heading with this:

    h2 {
    color: rgb(100,63,136);
    }

    Any ideas? Thanks for your help!

    Your code isn’t working for two reasons: you’ve forgotten the # on aboutslider and you’ve got the nesting order wrong. Because #aboutslider is the parent element, it needs to come before .et_pb_slide_description:

    #aboutslider .et_pb_slide_description {
    max-width: 650px;
    text-align:left;
    padding: 40px 0 20px 20px;
    margin: 0 auto;
    float:left;
    }
    
    #aboutslider .et_pb_slide_description h2 {
    padding: 0 0 10px 0;
    font-size:210%;
    margin: 0 auto;
    color: rgb(100,63,136);
    line-height:130%;
    }
    Thread Starter josiefox

    (@josiefox)

    Ahh, thank you for fixing that up, very much appreciate your help!

    I am now wondering how the hell it was working in the first place now though haha.

    Oh well, thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Child theme no longer working?’ is closed to new replies.