Site logo

[Resolved] Giving the off-canvas menu icon a link name

Home Forums Support [Resolved] Giving the off-canvas menu icon a link name

Home Forums Support Giving the off-canvas menu icon a link name

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2577067
    Greg

    Hi guys,

    I’ve switched the default off-canvas menu icon to a custom SVG using a snippet/filter, but can’t figure out if it’s possible to give the link a name?

    Screenshot of PageSpeed

    It’s to try and resolve this minor PageSpeed issue:
    “Links do not have a discernible name”

    Thanks for any help,
    Greg

    #2577116
    David
    Staff
    Customer Support

    Hi there,

    just after the opening <svg> tag try adding a title tag e.g

    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 309.72 524.31"> 
      <title>Open menu</title> 
      <!-- the rest of the SVG... --> 
    </svg> 
    #2577146
    Greg

    Perfect, that’s done the trick, thanks (as ever) for the help.
    Greg

    #2578611
    David
    Staff
    Customer Support

    Glad to hear that!

    #2578635
    Greg

    Thanks David.

    Do you know if there’s an easy way to give image links in query loops a title? PageSpeed is now flagging them up. I have a query loop pulling in the 3 most recent news posts on the homepoge. Screenshot link in private info.

    Thanks,
    Greg

    #2579064
    Ying
    Staff
    Customer Support

    Hi Greg,

    Can you try adding alt text for the images in the media library?

    Let me know if that works!

    #2579140
    Greg

    Thanks Ying, that’s done the trick! 🙂

    I had to import the posts/images from an existing site, and they either didn’t have alt text set or were cleared on import.

    #2579219
    Ying
    Staff
    Customer Support

    Glad it works.

    Images are better to have alt text to avoid accessibility issues 🙂

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