Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | adding-the-alt-attribute-to-the-slick-thumbnails-2948735-3.patch | 1.03 KB | alaa abbad |
#2 | adding-the-alt-attribute-to-the-slick-thumbnails-2948735-2.patch | 833 bytes | Muath Khraisat |
Comments
Comment #2
Muath Khraisat CreditAttribution: Muath Khraisat at Vardot commentedThe following patch should resolve the issue.
Comment #3
Muath Khraisat CreditAttribution: Muath Khraisat at Vardot commentedComment #4
alaa abbad CreditAttribution: alaa abbad as a volunteer commentedreroll patch to fix if slider have video thumb.
Comment #5
alaa abbad CreditAttribution: alaa abbad as a volunteer commentedComment #6
wipfweb CreditAttribution: wipfweb commentedFor 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.
Comment #7
gausarts CreditAttribution: gausarts commentedThanks! 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.
Comment #9
gausarts CreditAttribution: gausarts commentedCommitted. Thanks!
Comment #10
gausarts CreditAttribution: gausarts commentedComment #11
gausarts CreditAttribution: gausarts commentedMissed #6
Comment #12
gausarts CreditAttribution: gausarts commented