Calling an anchor from external pages

Calling an anchor from external pages was created by ClaudioRomeo

Posted 3 years 2 months ago #59631
Hi.
Please, I want just to be sure I've correctly understood how Scroll To works.
I set an anchor to a h2 title in my page ( www.mysite.it/mypage.html#myanchor )
If I link this anchor from an external page, it seems I don't need to specify the scrollTo class within the <a></a> tag: the Scroll To smoothing works anyway.
It appears as a miracle to me! Did I understand correctly how Scroll To works?

Counselor for better people in a better company

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Calling an anchor from external pages

Posted 3 years 2 months ago #59632
Hi
I have updated the behavior, now it scrolls to the anchor if the hastag is set in your url. It does not look for any anchor in the page to do that, it is automatically
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by ClaudioRomeo on topic Calling an anchor from external pages

Posted 3 years 2 months ago #59648
Great!
Thank you!

Counselor for better people in a better company

Please Log in or Create an account to join the conversation.

Time to create page: 1.012 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 642 guests and no members online