Skip to content

Anchor link within inline content #385

Answered by gingerchew
onetrev asked this question in Q&A
Discussion options

You must be logged in to vote

Boy does time fly! Here's a link to the promised codepen.

The pen shows how to fix the issue by just changing the id/href of the the links and targets.

So while the HTML is:

<div id="inlineSlideWrapper">
    <a href="#inlineAnchorTarget">Click Me</a>
    ...
    <div id="inlineAnchorTarget">Scroll here</div>
</div>

The slide HTML will be:

<div id="inlineSlideWrapper">
    <a href="#glightbox-inlineAnchorTarget">Click Me</a>
    ...
    <div id="glightbox-inlineAnchorTarget">Scroll here</div>
</div>

Replies: 2 comments

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 onetrev
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