• akumasama

    (@akumasama)


    Plugin is working fine for the custom Anchors I created and for the twentyseventeen built-in anchors I know of (#panel1, 2, 3, 4).
    It just doesn’t seem to be working for the homepage links.
    When I try to put a Home entry in my menu the link does work, but there is no scroll animation.

    I tried:
    1) Full website root url
    2) /#
    3) /
    4) /#top

    They all work but they all produce the same effect, i.e. no scroll animation.
    How can I solve this? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bego Mario Garde

    (@pixolin)

    Not sure, I fully understand your issue:

    The plugin is called “Scroll to anchor“,
    your link doesn’t have an anchor,
    but you want a scroll animation anyway?

    Thread Starter akumasama

    (@akumasama)

    In theory in HTML5 you can use a href=”#top” or a href=”#” to link to the top of the current page. More Details.
    So I kinda just assumed the same would work with the plugin.

    As a matter of fact the link does work and I get correctly brought on top of the current page. It’s just that there is no animation ??

    Thread Starter akumasama

    (@akumasama)

    I “solved” manually adding an anchor in the header.php file and then overwriting it with the existing one through ftp.

    But still it’s strange, I was expecting the plugin to work with the default HTML5 “top” anchor.

    Plugin Author Bego Mario Garde

    (@pixolin)

    This simply isn’t what the plugin was made for.

    The purpose of this plugin is to set anchors in long text and provide a smooth scrolling animation if you click a link targeting to the anchor. The anchor should always be named and also included in the content. The documentation of the plugin covers this quite well.
    Dummy-anchors (https://example.com/#) are excluded for reasons, mainly because they get used for different purposes (like triggering a JavaScript function).

    I could add functionality for a #top-anchor in the future, although I’m currently not even sure, how to get the plugin compatible with the new Gutenberg editor.

    If you want a smooth transition to let the user return to the top of a page, I may recommend you look for one of the many plugins, that were made for this purpose.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No scrolling animation to the top of the front page’ is closed to new replies.