Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Is there a way to link to different sections of the same game page?

A topic by npckc created Mar 10, 2021 Views: 400 Replies: 3
Viewing posts 1 to 3

Hello, is there a way to link to different sections of the same game page? For example, through <a href="#custom-section2">Link</a> if I have a section on the same page labelled custom-section2. 

When I try this, the link seems to be automatically stripped to <a rel="nofollow noopener">Link</a>.

(1 edit) (+2)

Itch strips these links. It’s annoying, but you can work around it by using the full URL for your page plus the anchor:

<a href="https://you.itch.io/yourgame#anchor">Link</a>

Itch strips ID attributes as well, so you’ll need to use <a name="section"></a> for the anchors instead if ID attributes.

(+1)

Thank you, this seems to work!

thanks - this was really helpful!