CSS not loading on site

Website URL

Can anyone help? I’m kind of stumped. My .css file doesn’t seem to be working. All my pages are linked to it correctly i think, and it works perfectly locally. Everything else seems to be working, just has no styling.

I’ve already tried multiple cache refreshes, incognito mode, force reload page etc. I’ve tried uploading just the homepage with .js and .css to see if it was another page causing it and stil nothing. Also tried deleting and reuploading everything through the file manager.

Any help is really appreciated thanks

Working for me

What exactly is not working?

4 Likes

Ah right, in that case really must be something to do with my cache, despite all the reloads and refreshes. Thanks for letting me know its working for you at least that’s a relief.

None of the styling is active on my end.

Fixed by renaming “styles.css” to “style.css”. Seems on Chrome it won’t refresh css if it has the same name as a previous one. Just in case anyone else has the same problem and rips their hair out as much as I did…

4 Likes

@anthonyfordaudio I had the same issues with firefox browser too which refuses to update its css cache even after multiple hard refreshes so I had to resort to adding a little php code that automattically appends the file creation time to the end of the filename in the form style.css?4786321 so that whenever a change is made this file time number will update and the browser will detect it and reload the file

what a pain in the neck ! btw if you wish to try this the post is here

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.