This is wild! I’m using Widgets for SiteOrigin‘s Inked Accordian widget on a page, and I placed a gallery shortcode inside each Accordion tab.
The widget works as expected, as does the Gallery and its lightbox function, but I can see actual CSS printed on the page. The
<style>tag’s contents render as text.
How do I fix this?
Here’s the page.
HELP!
Thank you in advance
Krousen56
This is not a bug! WordPress’s Gallery shortcode outputs a style tag with each thumbnail image. Placing style tags inside the body element is illegal in html5, WordPress should fix this in their Galley shortcode.
I found a plugin, “Gallery Shortcode Style to Head”, which places the style tags in the head, and not print them to the body.