• Currently, the stickers don’t have alt tags. This causes accessibility issues for users with visual impairments. It also causes validation errors.

    Fix seems pretty simple. E.g.

    $sticker_output_tmp = str_replace("{\$sticker_img_64}", '<img src="'.$file_url.'" height="64" width="64" alt="'.$options['stickers'][$value]['name'].'" /> ', $sticker_output_tmp);

    And then the same for each size of image.

    https://wordpress.org/plugins/social-stickers/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 9905372

    (@anonymized-9905372)

    I will add it in the next version, but as an option to include or not include alt tags.

    Cheers.

    Thread Starter Terence Eden

    (@edent)

    Is this option available? I couldn’t see it in the advanced settings.

    Hi Boštjan. The lack of alt tags is causing hundreds of audit errors across a website. How can I edit the code to add alt tags for the social media images?

    Thank you for your direction. I am currently using Version 2.2.9

    Anonymous User 9905372

    (@anonymized-9905372)

    Hello,

    Use the advanced setup and use the following in constructing your output:

    $sticker_img_url
    $sticker_url

    And just construct something like this:

    <img src=”{$sticker_img_url}” alt=””>

    Check the hooks available in the plugin itself.

    Unfortunately I do not have enough time to construct the whole string for you.

    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[bug] No Alt Tags’ is closed to new replies.