Search code examples
htmlcssgithub-pages

CSS + images not working on github pages but is working locally


I don't know if it has to do with me trying and failing to work a custom domain from hover or what is going on but here is my import.

Everything works and looks amazing on my local preview but when I try to bring it over to anthematics.github.io just the HTML works. The images and the CSS does not load.

<link rel="stylesheet" href="theme.css" type="text/css">

theme.css is in root and I did it without the / at first until I started having issues.


Solution

  • It turned out to be a caching issue - I cannot mark comments as answers so I am putting it here - if you come across this try Devtools - network - disable cache - then clear your cache on your browser.