'Internal links' from home page to a section in another page

Hi,

Is it possible to link a button on my home page to a section (with an ID) on another page? I have read the article on one-page-navigation but this doesn’t help. There is an image slider at the top of the target page, but it’s not dynamic (its height is not variable). Is this what is preventing my link from working? The button link I have created is https://ejegerton.org/books/#operation-blazing-sky. Is this the correct format?

I’m trying to do this without using JS. This should be straightforward, shouldn’t it?

Many thanks,
Colette

Hi Colette,

Thanks for writing in! I have checked referenced link and I see that it’s pointing to your section Operation Blazing Sky.

So basically you need to set your button link as above and it should point to the correct section.

Hope that helps.

When you say I should set my button link as above, are you referring to the code I showed you in my question. If it should work, it doesn’t. Many thanks, C

Hi Colette,

One page navigation is meant for one page (the same page linking), so linking from home page to outside page isn’t possible. It would still link, but it will not work the same as one page navigation.

I also checked and it’s linking okay, just without scrolling effect like one page navigation.

And I think what Darshana meant was setting an absolute URL like https://ejegerton.org/books/#operation-blazing-sky instead of just #operation-blazing-sky (which will only work on same page linking)

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.