-
AuthorPosts
-
June 2, 2019 at 4:39 pm #1106372
Hi
when I navigate to a page with an anchor from another page of the website the images load some seconds later and the anchor point shifts down.
Is there a function to load the page before scrolling to the anchor?- This topic was modified 5 years, 6 months ago by manurimini.
June 2, 2019 at 5:46 pm #1106384there is a little plugin which will do that : https://wordpress.org/plugins/page-scroll-to-id/
you have to mark that setting: “Scroll from/to different pages (i.e. scroll to target when page loads)”
Then it will first load the #top anchor and then after a delay scroll to given anchor position. You can determine the delay and if necessary add a scroll-offset.
Look here in action: https://webers-testseite.de/8-columns/#defJune 2, 2019 at 6:27 pm #1106403Hi manurimini,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaJune 3, 2019 at 5:07 pm #1106755Thank you Guenni007. I will give the plugin a try, but it would be nice to have a js doing it to put in functions.php.
Parhaps a solution could be to shift the scrolling when clicking on anchor links in footer in order to load the page before.- This reply was modified 5 years, 6 months ago by manurimini.
June 4, 2019 at 5:30 am #1106924Hi,
Thanks for the update and feedback, please let us know if you should need any further help on the topic.
Best regards,
RikardJune 4, 2019 at 8:35 am #1106940Hi Rikard
Actually yes. Can you or Ismael or Yigit give me a js to postpone the anchor link after the page is loaded or to put the ‘scrolling to anchor link’ in footer? Thank you
Best Regards
ManuJune 4, 2019 at 1:13 pm #1107076Hi Manu,
Thanks for the update, I’m not sure I understand what you mean by your request though. Anchor links are added in the markup of a page and I’m not sure what postponing it would achieve? I’m not even sure what you mean by postponing?
Best regards,
RikardJune 4, 2019 at 8:46 pm #1107263Hi Rikard
thank you for your reply. I’m sorry for my poor English.
What I meant was if I click on a link in a page, it should load the new page and then scroll to the specific div element or first load the #top anchor and then after a delay scroll to given anchor position. There is the plugin Guenni007 suggested, but I would rather prefer a function to put in functions.php.
Less (plugins) is better :)- This reply was modified 5 years, 6 months ago by manurimini.
June 11, 2019 at 3:23 pm #1109180Hi manurimini,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.