Make the header nav title text (site title) clickable #3611
Answered
by
squidfunk
villeodell
asked this question in
Q&A
-
Just in case someone else comes across #1471 with the same desire -- consider sharing possible solutions here. |
Beta Was this translation helpful? Give feedback.
Answered by
squidfunk
Feb 21, 2022
Replies: 2 comments
-
One approach if you don't feel like overriding the header in the theme would be to add an onclick or eventListener with additional javascript to the header title html element. mkdocs.yml extra_javascript:
- javascripts/extra.js
javascripts/extra.js document.getElementsByClassName('md-header__title')[0].onclick = function() { location.href = document.location.origin } |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please see #2044 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
villeodell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see #2044 (comment)