After updating to JetPack 9.7 Google Console shows CSS error, how to fix it?
-
Google Search Console highlight CSS syntax error in tag ‘style amp-custom’ – disallowed media type ’email’ for AMP pages using the AMP plugging version 2.1.2 and JetPack 9.7.
Can anyone figure out the problem and how to fix it?
This is the portion of the css that Google sees has an error.border:0}@media only email{.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_container{overflow:visible;opacity:1;width:auto;height:auto}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide figure{display:block;margin-bottom:12px}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{list-style:none;margin-left:auto;margin-right:auto}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{display:inline-block;width:42%;height:auto;vertical-align:top}:root:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_slide{margin-left:2%;margin-right:2%}.wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_caption.gallery-caption{position:relative;right:auto;bottom:auto;background-color:transparent;color:inherit;padding-top:0}}.amp-wp-enforced-sizes{-o-object-fit:contain;object-fit:contain}button[overflow]{bottom:0}amp-img img,amp-img noscript{image-rendering:inherit;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}.amp-wp-enforced-sizes{max-width:100%;margin:0 auto}.amp-wp-content,.amp-wp-title-bar div{max-width:650px;margin:0 auto}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif;font-size:16px;line-height:1.8;background:#fff;color:#3d596d;padding-bottom:100px}.amp-wp-content{padding:16px;overflow-wrap:break-word;word-wrap:break-word;font-weight:400;color:#000}.amp-wp-title{margin:36px 0 0 0;font-size:36px;line-height:1.258;font-weight:700;color:#000}.amp-wp-meta{margin-bottom:16px}p,ul,figure{margin:0 0 24px 0}a,a:visited{color:#039be5;text-decoration:none}a:hover,a:active,a:focus{color:#3f51b5}.amp-wp-meta,nav.amp-wp-title-bar{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif;font-size:15px}ul.amp-wp-meta{padding:24px 0 0 0;margin:0 0 24px 0}.amp-wp-meta,.amp-wp-meta a{color:#888}.amp-wp-byline amp-img{border-radius:50%;border:0;background:#f3f6f8;position:relative;top:6px;margin-right:6px}nav.amp-wp-title-bar{background:#fff;padding:0 16px;border-bottom:1px solid #eaeaea}nav.amp-wp-title-bar div{line-height:54px;color:#fff}nav.amp-wp-title-bar a{color:#000;text-decoration:none}nav.amp-wp-title-bar .amp-wp-site-icon{float:left;margin:11px 8px 0 0}amp-carousel{background:#000}amp-carousel > amp-img > img{object-fit:contain}.logo-title{font-size:1.4rem;font-weight:600}.footer-top{text-align:center;font-size:1.2rem}.rvzone-amp-top{margin:8px auto;text-align:center;display:block;clear:both}.xyz-featured-image{text-align:center}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘After updating to JetPack 9.7 Google Console shows CSS error, how to fix it?’ is closed to new replies.