Okay
  Public Ticket #830141
Scrolling Anchor
Closed

Comments

  •  2
    Jon started the conversation

    I'm trying to add an arrow that when clicked, scrolls down to a different section on the page. Is this possible?

  • [deleted] replied

    Hi Jon,

    I can see that you have already done that.

  •  2
    Jon replied

    Yes, I had to download a 3rd party plugin... For future reference, is there a build-in setting for this?

  • [deleted] replied

    Hi Jon,

    In order to add that functionality simply add class to the arrow link "scrollable" and it should work. As an example:

    <a href="#my-section" class="scrollable">Hello World</a>

    Just before that, you need to replace one javascript file, because this functionality wasn't implemented.

    Download this file and replace it in this directory (of the theme): /assets/js

    Hopefully this will work for you. 

    If you don't see the change immediately, please hard-refresh your browser (CTRL/CMD+R) because it takes longer to load the changes, as they are saved in browser cache. Another option is to open new private/incognito window and try if it works.