[Resolved] CSS edits are not being honored

Tagged: 

  • Author
    Posts
  • #12390

    Andrew Misplon
    Keymaster

    Hi Holden

    Thanks for posting.

    CSS is impacted by the order it’s loaded in and specificity. Additional CSS and the child style.css file aren’t loaded in the same place so the order is impacted. If I change your only child style.css rule as follows:

    h1 {
    	display: none;
    	font-family: 'Roboto', sans-serif;
    }

    The h1 on the home page is removed. Put another way, I’d need to try to assist with a specific example. There, unfortunately, isn’t a general fix here other than diving a bit deeper into CSS (https://css-tricks.com/specifics-on-css-specificity/). Which heading tag are you trying to hide? The h1 on the home will be removed if you change the rule as I’ve indicated above.

    #12400

    Holden Hays
    Participant

    Thank you, I found out that my server was caching the CSS so I was not seeing the edits! Thank you for your help!

    #12401

    Andrew Misplon
    Keymaster

    Super 🙂 Really glad to hear you were able to resolve this. Sorry for not suggesting caching, I thought we were looking at more of a challenge with applying rules rather than rules not being there. If you have any questions in the future, please let me know.

    All the best.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Scroll to top