• Resolved roadlink

    (@roadlink)


    Hi,

    I have 2 issues with the wishlist icon.

    • Even I have added alt attribute when upload custom icon, It doesn’t shown at product pages.
      That creates error in lighthouse tool.
      “Image elements do not have [alt] attributes”
    • <img class="yith-wcwl-icon perfmatters-lazy loaded" src="https://mydomain/wp-content/uploads/2021/04/favorilere-eklenmemis.svg" width="32" data-src="https://mydomain/wp-content/uploads/2021/04/favorilere-eklenmemis.svg" loading="lazy" data-was-processed="true">

    • There is hard coded 32px height and width, which is too big. Can you remove it with next update?
    • This topic was modified 3 years, 7 months ago by roadlink.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter roadlink

    (@roadlink)

    I find solution like below.
    Where should i put this file to override template?
    I tried child theme’s main folder, child theme/woocommerce , /includes, woocommerce/includes

    Nothing worked.

    Solution;
    OPEN
    yith-woocommerce-wishlist/includes/class.yith-wcwl-shortcode.php

    FIND
    width="32"

    REPLACE
    height="15px" width="15px" alt="wishlist"

    • This reply was modified 3 years, 7 months ago by roadlink.
    Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    Thank you for your report
    I’ll add a default alt content, and filters to edit icon alternative text and dimension

    Thread Starter roadlink

    (@roadlink)

    Thanks.

    Plugin Support Antonio La Rocca

    (@therock130)

    You’re welcome
    I implemented requested change, and next version, scheduled in the next days, will include those

    I’m consequently marking this topic as solved

    Thread Starter roadlink

    (@roadlink)

    Hi @therock130 ,

    I see some codes related with this topic in new version.
    Also see this note.

    Dev: added yith_wcwl_custom_icon_alt and yith_wcwl_custom_width filters, to allow dev customize ATW custom icon

    But, I couldn’t find where to add these settings. I can’t see on plugin’s setting page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘img.yith-wcwl-icon ICON doesn’t show alt attribute’ is closed to new replies.