Duplicate Height & Width Attributes Causing HTML Validation Errors
-
Hello,
Meta Slider is producing the following W3C HTML Validation errors on my site for images inserted into the slider (FlexSlider):
Duplicate attribute “height”
Duplicate attribute “width”The errors are referenced for each of the images in the slider and are the result of both WordPress and Meta Slider inserting conflicting height and width attributes into the source code. I tried resolving the issue by leaving the height and width fields empty in the slider settings and instead setting the width via CSS; however, this doesn’t remove the height and width attributes from the code, it merely gives them blank values (height=””, width=””).
The height and width attributes inserted by Meta Slider actually seem redundant in my case, since the values inserted by WordPress are the dimensions being rendered by the browser and the width set by Meta Slider on the parent li is used to contain the images within the set width (200px).
Please let me know how I can remove the Meta Slider height and width attributes from my source code and resolve these errors.
Thanks,
Meghan———————
The issue can be found here: local development site
The preview works: Yes
It works with other themes: Yes
It works when I disable all other plugins: Haven’t Tried
Meta Slider version: 3.8.1
———————The page I need help with: [log in to see the link]
The topic ‘Duplicate Height & Width Attributes Causing HTML Validation Errors’ is closed to new replies.