CSS Changes Not Showing: Cached Stylesheet and Specificity Problems
Either the browser loads an old file or another rule wins. Check both.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Is the new file loading?
- Hard refresh (Ctrl+F5 or Cmd+Shift+R) or use a private window.
- In developer tools, open the Network tab and check the CSS file's size and time.
- Add a version query to the link (
style.css?v=2) when you change it. See clearing every cache.
Is another rule winning?
- Inspect the element and look at the Styles panel: crossed-out rules lose.
- More specific selectors and later rules win.
- Avoid
!importantexcept as a last resort. - A typo or missing bracket breaks all rules after it.
See CSS Layout Broken? Common Flexbox and Grid Fixes for Beginners.
Related guides
- YouTube Video Embed Not Working or Showing an Error on Your Website
- Yoast SEO or Rank Math Sitemap Shows 404 or Is Empty
- WordPress XML Sitemap Gives 404 or Is Not Generating
- Changed the WordPress Address (URL) and Now the Site or Login Is Broken
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.