Hi!
I have SiteOrigin Widgets Bundle v:1.8.2 and WordPress 4.7.3.
I am gettint an html validator error saying that scrset is invalid, and really! :)
I have tried to inactiveta and activate the plugin, uploaded to tzhe latest version, and regenared all tha image thumbnails, and still the image scrset is unknown.
Could you help me with this?
Of course I have emptied the cache before each check.
The website is:
The error is in the footer, where the webstar logo is.
Thank you!
Hi Molnareva,
Can you please clarify what the validator says? I don’t see anything wrong with your srcset.
Hi Alex!
The validator says:
“Error: Bad value for attribute srcset on element img: Must contain one or more image candidate strings.””
Check the logo at the bottom of the page, the problem is there.
Basically I have realised that the whole page is using elements of this widget, and the scrsets are ok everywhere else, except there. That part is a SiteOrigin Image widget.
Hi Molnareva,
I just checked and that image doesn’t actually have a srcset present. Did you remove it?
What are you using to validate your HTML?
Hi Alex!
Yes, I have modified it, as this is a live site and we would like to optimize is I could not wait for this part of the widget to be fixed, so I have changed SiteOrigin Image widget to SiteOrigin Editor and inserted the image src code, this way I could walk around the problem.
I have found the github repo of the widget budle, I have added a new issue about it, if I have time maybe I will have closer look at it as well.
Thanks for your support anyway, I really appreciate your quick responses, this plugin has a much better support than many others!
Hi Molnareva,
So, to clarify, what did you do to replicate this issue? I ask as I can’t seem to replicate this issue and we need to be able to replicate it to be able resolve this issue. If you could provide the exact steps to take to replicate this issue that would be much appreciated.
Hi Alex!
Sure!
I am using a template with a header and footer widget area.
I have installed SiteOrigin Widget Bundle.
On the adminpanel I went to Appeareance and selected Widgets.
I dragged and dropped SiteOrigin Image element to the footer widget area and selected a .svg image as a logo.
I have saved the widget area.
After refreshing the page I saw an empty srcset attribute in the img tags of the logo.
I hope it helped.
Hi Molnareva,
An SVG? I suspect that’s the reason for this. Does this issue occur when using any other format for you?
Hi Alex,
Yes, it does happen with .png image also.
Hi Molnareva,
Unfortunately, I can’t seem to replicate this issue. Are you able to replicate this issue when all non-SiteOrigin plugins are disabled?