Skip to content

Custom CSS/JS not working on GitHub Page #56005

Discussion options

You must be logged in to vote

You have invalid absolute links there. E.g. for the favicon:

    <link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">

Because of the leading slash the browser will look at https://tahayparker.github.io/favicons/favicon-32x32.png, which doesn't exist. You should use relative links, in this specific case removing the leading slash will work.

The problem with the cursor is basically the same, mind that in that case the relative location is relative to the stylesheet.

See: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL#absolute_url…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tahayparker
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question
2 participants