Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.
    #1106384

    there 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/#def

    #1106403

    Hi manurimini,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1106755

    Thank 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.
    #1106924

    Hi,

    Thanks for the update and feedback, please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

    #1106940

    Hi 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
    Manu

    #1107076

    Hi 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,
    Rikard

    #1107263

    Hi 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.
    #1109180

    Hi 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.