WordPress.org

Ready to get started?Download WordPress

Forums

Superb slideshow gallery
[resolved] Alt Tags for images to be ADA Compliant (1 post)

  1. mixlplex
    Member
    Posted 2 years ago #

    In order to provide Alt tags so it's easier for blind readers to navigate the site I changed the following code in the superb-slideshow-gallery.js file:

    In the
    getSlideHTML:function(imgelement){

    I changed

    layerHTML+='<img src="'+imgelement[0]+'" style="border-width:0;" />\n'

    to

    layerHTML+='<img src="'+imgelement[0]+'" alt="'+imgelement[3]+'" style="border-width:0;" />\n'

    This takes the image title and displays it as an alt tag. For better or worse, all of the image titles for all of the images in the gallery will be displayed at once.

    http://wordpress.org/extend/plugins/superb-slideshow-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic