[Resolved] smooth-scroll not working on image but does on text

Home Forums Support [Resolved] smooth-scroll not working on image but does on text

Home Forums Support smooth-scroll not working on image but does on text

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #759560
    drew

    Running into an issue where assigning the smooth scroll class to text link works fine and dandy, but won’t when assigned to an svg image link.

    Here’s the code for the image version (it located in the home page hero header):

    <a href="#on-stage-now"><img class="smooth-scroll aligncenter wp-image-1617" role="img" src="https://loct.wpengine.com/wp-content/uploads/2018/12/arrow-down-sign-to-navigate.svg" alt="" width="24" height="24" /></a>

    Am I missing anything?

    #759657
    David
    Staff
    Customer Support

    Hi there,

    try moving the class to the <a> tag not the <img> tag.

    #759670
    drew

    Well duh ๐Ÿ™‚

    Many thanks!

    #759674
    David
    Staff
    Customer Support

    ๐Ÿ™‚ – Glad to be of help.

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