Using wp show posts with generatepress.
WPSP seems to insert inline style at the point I insert the shotcode.
eg.
<div class=”gb-container gb-container-3cab30f1″><div class=”gb-inside-container”>
<style>.slick-slider#wpsp-312 {margin-left: 0px; }.slick-slider#wpsp-312 .wp-show-posts-inner {margin-left: 1em; ….
and
<style>.wp-show-posts-columns#wpsp-312 {margin-left: -2em; }.wp-show-posts-columns#wpsp-312 .wp-show-posts-inner {margin: 0 0 2em 2em; }</style>
Is there a way to move this to the head of document so that I can keep the HTML to be valid?
Error I’m getting is
“Element style not allowed as child of element div in this context.”
Many thanks