Ginger cookie breaks AMP with youtube
-
I am quite happy with ginger cookie, but it screws up the code of my AMP pages. I use wp amp and this works usually well, but with ginger cookie enabled, I get errors in the Google search console regarding a missing value of the iframes:
<div class="ik_youtube"> <amp-iframe width="600" height="500" src="https://www.youtube.com/embed/o-3LA61Vy2M" frameborder="0" allowfullscreen="" sandbox="allow-scripts allow-same-origin" layout="intrinsic" class="amp-wp-enforced-sizes"><span placeholder="" class="amp-wp-iframe-placeholder"></span><noscript><iframe width="100%" height="500px" frameborder="0" data-ce-src="https://www.youtube.com/embed/o-3LA61Vy2M" class="ginger-iframe "></iframe></noscript></amp-iframe></div> </div>
I am afraid, the string
data-ce-src="https://www.youtube.com/embed/o-3LA61Vy2M" class="ginger-iframe
is what causes Google AMP the hickup as it expects an iframe to have a src-attribute.
How can I prevent ginger-cookie to run on AMP? It can’t be displayed anyway due to the restrictions on javascript, afaik.
- The topic ‘Ginger cookie breaks AMP with youtube’ is closed to new replies.