• Resolved mendelkranz

    (@mendelkranz)


    Hi,
    I have links set up in the menu with the proper ‘m_PageScroll2id’ in the “Link Relationship (XFN)” section, I also have ‘Scroll to location hash’ enabled. However, when I’m on a separate page and click on the menu link it doesn’t find the id on the other page?! On the same page it works perfectly.
    I have the link set as just #mylink, because if i preface that with mysite.com/page#mylink, then it reloads the page every time instead of just scrolling to the section.
    Am i doing something wrong??

    Thanks in advance

    https://ww.wp.xz.cn/plugins/page-scroll-to-id/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author malihu

    (@malihu)

    Having the absolute URL on the link’s href (e.g. ‘http://mysite.com/page#mylink’) does not reload the page (if the link is on the same page).

    You need to have the full URL on links if you want to use the same menu across different pages.

    When you’re in http://mysite.com/page and you click the link with href http://mysite.com/page#mylink, the page won’t reload (it’ll just scroll to ‘#mylink’).

    Thread Starter mendelkranz

    (@mendelkranz)

    I tried again and it’s definitely reloading the page.
    Here is the URL http://beta.chabadofva.com/camp-gan-israel/#camp-features,
    From a different page it now works fine but within the same page it reloads the entire page before scrolling to the specific section

    Plugin Author malihu

    (@malihu)

    Try adding a trailing slash in the link’s URL (before the hash) so it’s identical with the actual page URL you see in the address bar:
    http://beta.chabadofva.com/camp-gan-israel/#camp-features

    Thread Starter mendelkranz

    (@mendelkranz)

    That worked thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Getting to a section from different page’ is closed to new replies.