Support » Fixing WordPress » Jump link to different pages

  • layza

    (@layza)


    Howdy!

    I wanted a jump link for a menu item and to do so I set the id for the section and then used custom link in menu as “http://mywebsite.com/#section_id”.
    It works fine in homepage, but when I try to do it from non homepage pages it sends me on the bottom of the page.

    This is the website link http://cascina-barolo-bed-and-breakfast.com, and menu item I wanted to be anchor is “Affita intera cascina”.

    Any advice?

    Thank you in advance

    • This topic was modified 1 year ago by  layza.
Viewing 5 replies - 1 through 5 (of 5 total)
  • mdshak

    (@mdshak)

    Hi,
    You can jump to Affita intera cascina section at home page. But you cant jump to Affita intera cascina section at another page because you dont have this Affita intera cascina section at another page. Create this section also at another page to work. Hope you will understand.
    Thanks
    Mohammad

    ikaring

    (@ikaring)

    It seems some js relocate home page contents after page load.
    So, I guess, it scrolls down to wrong section if you jump to anchor link from other pages.

    layza

    (@layza)

    Thanks @mdshak, but it’s not what I wanted to do 🙂

    @ikaring I thought so. So, do you think if I try with some js would it work? Tnx

    ikaring

    (@ikaring)

    Hi.
    If that js has a event trigger for after relocation, it might be possible to jump/scroll to the anchor by using location.hash or some sort, I guess.

    mdshak

    (@mdshak)

    Hi,
    I opened this page http://cascina-barolo-bed-and-breakfast.com/il-territorio/ and click to Affitta Intera Cascina. I got the exact section after loading and scrolling automatically.

    Thanks
    Mohammad

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Jump link to different pages’ is closed to new replies.