Menü schliessen
Created: August 10th 2012
Last updated: May 1st 2020
Categories: Joomla
Author: Marcus Fleuti

Joomla :: Nivo Slider :: Remove height and width attributes to fulfill 100% HTML5 validity

Tags:  CMS,  Joomla,  Nivo Slider,  Plugin
Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

The problem

The Nivo Slider Joomla Plugin adds the width="" and height="" elements to the img tags which results in errors when validating with the W3C Validator.

The solution

Edit the file

/modules/mod_vt_nivo_slider/helper.php

and change this line (currently Line #190):

$tmp = "<img src=\"$path\" alt=\"Vinaora Nivo Slider\" title=\"$captionid\" data-thumb=\"$data_thumb\" width=\"$slide_width\" height=\"$slide_height\"/>";

to this:

$tmp = "<img src=\"$path\" alt=\"Vinaora Nivo Slider\" title=\"$captionid\" data-thumb=\"$data_thumb\" />";

Done!