Welcome, Guest
Username: Password: Remember me

TOPIC: Joomla Vinaora Nivo slider missing image alt text

Joomla Vinaora Nivo slider missing image alt text 4 years 5 months ago #112

  • Arnaud
  • Arnaud's Avatar
  • Offline
  • Karma: 3
If you are using the Vinaora Nivo Slider on Joomla you may have noticed that the alt text is missing from the slides. And as most of us should be concerned about our SEO scores here's what we did to add the slide title as the alt text.

Edit modules/mod_vt_nivo_slider/helper.php and change the image to <img src=\"$path\" alt=\"$title\"{$captionid}{$data_thumb}/>";

Secondly, edit media/mod_vt_nivo_slider/js/jquery.nivo.slider.min.js and add the alt= to the first image tag as follows;
<img src="'+c.attr("data-thumb")+'" alt="'+c.attr("alt")+'" />
And then find the next image tags 4 times and add the alt attribute as below:
<img src="'+r.currentImage.attr("src")+'" alt="'+r.currentImage.attr("alt")+'" style=...
Arnaud Kleinveld
Last Edit: 4 years 5 months ago by Arnaud.
The administrator has disabled public write access.
Powered by Kunena Forum