When validating a website using Screaming Frog SEO Spider Tool & Crawler Software, I found that the alt attribute of the slick thumbnails images is missing. Alt tags provide text which is read by the search engines, so adding the alt attribute to the slick thumbnail image will optimize the website for higher search engine rankings.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Muath Khraisat created an issue. See original summary.

Muath Khraisat’s picture

Assigned: Muath Khraisat » Unassigned
Status: Active » Needs review
FileSize
833 bytes

The following patch should resolve the issue.

Muath Khraisat’s picture

Issue summary: View changes
alaa abbad’s picture

reroll patch to fix if slider have video thumb.

alaa abbad’s picture

wipfweb’s picture

For those using this in display mode as a slick slider -

Function used to format the thumbnails doesn't call $item variable - so it's just null

Plugin/Field/FieldFormatter/SlickFileFormatterBase.php line 127
$thumb[$item_id] = empty($settings['thumbnail_style']) ? [] : $this->formatter->getThumbnail($settings);

set to

$thumb[$item_id] = empty($settings['thumbnail_style']) ? [] : $this->formatter->getThumbnail($settings, $item);

This should now work alongside the last patch.

gausarts’s picture

Status: Needs review » Patch (to be ported)

Thanks! Truly sorry for delay and inconvenience.
Allow me sometime to recap and tag pending patches first before I can commit anything as I have been away for quite a while.

  • gausarts committed ff0aa82 on 8.x-1.x authored by alaa abbad
    Issue #2948735 by alaa abbad, Muath Khraisat: Adding the alt attribute...
gausarts’s picture

Committed. Thanks!

gausarts’s picture

Status: Patch (to be ported) » Fixed
gausarts’s picture

Status: Fixed » Active

Missed #6

gausarts’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.