• There is a simple change that can be made to keep your page XHTML 1.0 Transitional when using the NextGEN Smooth Gallery Slideshow.

    In the file:
    /wp-content/plugins/nextgen-smooth-gallery/nggSmoothSharedFunctions.php

    Change line 183 & 184. The image tag is missing the alt declaration, this adds alt=”the image title”.

    The old lines are:

    183     $out .= "  <img src=\"" . $picture["img"]   . "\" class=\"full\" />";
    184     $out .= "  <img src=\"" . $picture["thumb"] . "\" class=\"thumbnail\" />";

    The new lines should be (line numbers are not to be considered as code):

    183     $out .= "  <img src=\"" . $picture["img"]   . "\" class=\"full\" alt=\"" . $picture["title"] . "\" />";
    184     $out .= "  <img src=\"" . $picture["thumb"] . "\" class=\"thumbnail\" alt=\"" . $picture["title"] . "\" />";

The topic ‘NextGEN Smooth Gallery Slideshow W3C fix’ is closed to new replies.