Stylesheets not working in Github Pages

For some reason the JS isn’t working on

1 Like

Hey, welcome to the GitHub Support Community! I’ve noticed that in your CSS stylesheet and JS script you’re calling each starting with assets/ instead of ./assets/; ./assets/ will ensure that you’re first defining the current directory and then moving onto the next directory.

To call your JS script, use <script src="./assets/js/script.min.js"></script>. To call your CSS stylesheet, use <link rel="stylesheet" href="./assets/css/styles.min.css">.

Hope this fixes your issue. If you have anymore trouble, don’t hesitate to reply back!