Skip to content

Best way to direct site title logo to another url? #1517

Answered by HiDeoo
jackbridger asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋 There is no dedicated option to change the URL of the site title logo in Starlight altho this should be doable.

Starlight supports overriding components which allows you to use your own custom components and override its default components.

One of the component that we can be overridden is the <SiteTitle/> component.
You could override the built-in <SiteTitle/> component and considering it's a fairly simple component, you could just copy the one used in Starlight in your custom override and change the URL of the site title logo to your liking.

The various links in my message should help you get started with overriding components in Starlight but if needed, here is a StackBlitz example

Replies: 2 comments 1 reply

Comment options

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

You must be logged in to vote
1 reply
@jackbridger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants