Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    To make the “To the top” link implemented by Twenty Twenty work with our “sticky header” option, we’ve added some code inside a Javascript file (browsers don’t understand HTML anchor tags that link towards sticky elements). However, since custom JavaScript isn’t allowed with AMP, Twentig doesn’t enqueue this script when AMP is active. Unfortunately, as you’re using both “Sticky header” and AMP on your website, it isn’t possible to make the “To the top” link work.

    If you want to keep both AMP and the “Sticky header”, a solution would be to use a different bottom footer layout to remove the “To the top” link.

    I hope the above is useful to you.
    Have a nice day.

    Thread Starter joeyvankuilenburg

    (@joeyvankuilenburg)

    Thank you for the help!

    Plugin Author Twentig

    (@twentig)

    Great! If you enjoy Twentig, please leave us a review. We’d really appreciate it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘To-the-top link not working’ is closed to new replies.