I have been using Quotes Collection for a while.
Recently (probably since upgrade to 2.0.3 or after twentyfourteen theme upgrade) I experience errors using for example W3C validator (https://validator.w3.org).
I use a Random Quote widget in my footer – the error message is:
“The element footer must not appear as a descendant of the footer element”.
<footer class=”attribution”>— <cite class=”author”>Paul Janssen</cit…
Help is appreciated!
While updating the code for version 2.0, I found that the way HTML elements were laid out for the quote widget isn’t valid anymore, so I restructured the quote template as follows
<blockquote> The quote... <footer class="attribution"> — <cite class="author">Author</cite> </footer> </blockquote>
I simply followed the advice from HTML5 doctor and I thought this is logically and semantically better than the older model, and actually this works quite well in sidebar widget areas. The error is because you use the widget in your footer widget area that goes inside a
I’ll see how I can solve this problem, meanwhile if you or anyone can suggest a better way of doing this I’d be open to that also.
Thanks for a prompt reply (and the great Quotes Collection plug-in!)
I am not HTML5 expert – maybe it could help to put to quote inside a “section”? From what I read this “section” could have its own “footer” etc.
Maybe experts have better suggestions….
As a quick temporary solution I have changed “footer” in the file class-quotes-collection.php into a normal “div”.
(but did not change the css in the file quotes-collection.css).
- The topic ‘html errors using widget in footer – since 2.0.3? –’ is closed to new replies.