• Hi guys!

    So I installed a Child Theme for my Spacious Theme (which I love!) and it works great for a number of edits that I’ve done on the CSS. One of the changes though has stopped working – I changed the colour of my footer background + centered the widget title text and it worked fine… but a few days ago it changed back to where it was! (now it is a black background and text is alligned to the left).

    Frustrated, I decided to go over to the Parent theme and changed the CSS there, and then it was ok, but now, a few days later, without me doing anything special, it changed again!

    What is wrong?? Can you please help me??

    Just so you know:

    – I have only 2 plug ins installed – WP Super Cache and Akismet.
    – I read somewhere that when we add stuff in theCustom CSS section (Appearance> Theme Options>Design) we should not add it in the Child Theme as well. I didnt know that, so I had my custom CSS written on both places, but now I deleted. Still, didn’t solve my issue.

    My site is under construction but if you need to inspect the elements of something like that, here it is: https://www.mysuperdiary.com

    Thank you so much! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • CSS is parsed going top down.

    If there’s an error in your CSS anything below the parse error will *not* be executed.

    Which is what happened in this case.

    You can see the problem with a CSS Validator

    https://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fmysuperdiary.com%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en

    Thread Starter Dijones

    (@dijones)

    Thank you so much Frumph! ??

    I had no idea of this tool, I will try to use it to make the necessary changes.

    However, I still don’t understand why did the changes I made worked for a few days/weeks and then all of a sudden disappeared!

    If the problem is solely because of errors on my custom CSS, I shouldn’t have seen success right after I first made my changes, right? If the custom CSS was wrong all along… why did it only start to give me problems now?

    Do you think it has anything to do with WP Super Cache? I read it can cause problems like this…

    Thanks so much ??

    Probably any minification you do to the css files might cause it; but not necessarily wp-supercache.

    Since I cannot know what you did, cannot say for any certainty beyond what the error’s show now…

    Thread Starter Dijones

    (@dijones)

    Ah, oK, I think I understand. Me neither, I didnt track very well my changes…lol Thanks so much! I am a total newbie so this programming thing is a bit overwhelming at times, but with your help I think I’ll make it work again.

    Thanks so much for helping me & people like me! I can see you’re trying to help a lot of people, and that is a great thing, you’re helping other people achieve their goals.

    Best of luck and thanks for all the help. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child Theme worked for a while and now it doesn't!’ is closed to new replies.