Website works fine locally but after hosting it through Github, the css does not work

Hi everyone. I have created my first website and tried hosting it.

The issue I am facing is, the website works properly on my local system. Even after I pull the files from my github repo, it works fine. But on the actual website all the javascript and css is gone. The website is - www.sampurnagraphics.com
and the github repo is - https://github.com/meetnandu05/meetnandu05.github.io

It would be great if anyone helps me. Thanks!

Hi @meetnandu05, welcome to the GitHub Support Community!

Looking in the development console for your site it seems like there’s a lot of 403 (Forbidden) errors when loading your site’s assets. It seems like these assets are being loaded from an external domain https://tympanus.net/ which is likely blocking your use of these files.

You’ll either need to find an external host that will allow you to reference these files or upload them directly to your GitHub repository and update the links to point to these files instead.

2 Likes