An AMP component ‘script’ tag is present more than once in the document.
-
I am getting this message in search control. No idea how to fix is. Please help
An AMP component ‘script’ tag is present more than once in the document.
This is the code that GSC highlights:
</script><script src=”https://cdn.ampproject.org/v0/amp-analytics-0.1.js” async=”” custom-element=”amp-analytics”></script><script src=”https://cdn.ampproject.org/v0/amp-form-0.1.js” async=”” custom-element=”amp-form”></script><script src=”https://cdn.ampproject.org/v0/amp-mustache-0.2.js” async=”” custom-template=”amp-mustache”></script><style amp-custom=””>.contact-form input::placeholder{transition:opacity .3s ease-out}.contact-form input:hover::placeholder{opacity:.5}.contact-form input:focus::placeholder{opacity:.3}.contact-form input[type=’text’],.contact-form input[type=’email’],.contact-form input[type=’tel’],.contact-form input[type=’url’]{box-sizing:border-box;margin-bottom:1.5em;width:100%}.contact-form input[type=’radio’],.contact-form input[type=’checkbox’]{float:none;margin:0 .75rem 0 5px}.contact-form input[type=’checkbox’]{top:0;margin-left:0}.contact-form label{margin-bottom:.25em;float:none;font-weight:bold;display:block}.contact-form label span{font-size:85%;margin-left:.25em;font-weight:normal}@media only screen and (min-width: 600px){.contact-form input[type=’text’],.contact-form input[type=’email’],.contact-form input[type=’tel’],.contact-form input[type=’url’]{width:50%}}p:empty:before{content:”?”}amp-img.amp-wp-enforced-sizes[layout=”intrinsic”] > img{object-fit:contain}.amp-wp-default-form-message > p{margin:1em 0;padding:.5em}.amp-wp-default-form-message[submitting] > p,.amp-wp-default-form-message[submit-success] > p.amp-wp-form-redirecting{font-style:italic}.amp-wp-default-form-message[submit-success] > p:not(.amp-wp-form-redirecting){border:solid 1px #008000;background-color:#90ee90;color:#000}.amp-wp-default-form-message[submit-error] > p{border:solid 1px #f00;background-color:#ffb6c1;color:#000}.amp-wp-default-form-message[submit-success] > p:empty{display:none}.alignleft{margin-top:1em;margin-right:auto;margin-bottom:1em;margin-left:auto}.alignleft{float:left}.amp-wp-enforced-sizes{max-width:100%;margin:0 auto}html{background:#0a89c0}body{background:#fff;color:#353535;font-family:Georgia,”Times New Roman”,Times,Serif;font-weight:300;line-height:1.75em}p,ul,figure{margin:0 0 1em;padding:0}a,a:visited{color:#0a89c0}a:hover,a:active,a:focus{color:#353535}.amp-wp-header div,.amp-wp-title,.wp-caption-text,.amp-wp-footer p,.back-to-top{font-family:-apple-system,BlinkMacSystemFont,”Segoe UI”,”Roboto”,”Oxygen-Sans”,”Ubuntu”,”Cantarell”,”Helvetica Neue”,sans-serif}.amp-wp-header{background-color:#0a89c0}.amp-wp-header div{color:#fff;font-size:1em;font-weight:400;margin:0 auto;max-width:calc(840px – 32px);padding:.875em 16px;position:relative}.amp-wp-header a{color:#fff;text-decoration:none}.amp-wp-header .amp-wp-site-icon{background-color:#fff;border:1px solid #fff;border-radius:50%;position:absolute;right:18px;top:10px}.amp-wp-article{color:#353535;font-weight:400;margin:1.5em auto;max-width:840px;overflow-wrap:break-word;word-wrap:break-word}.amp-wp-article-header{align-items:center;align-content:stretch;display:flex;flex-wrap:wrap;justify-content:space-between;margin:1.5em 16px 0}.amp-wp-title{color:#353535;display:block;flex:1 0 100%;font-weight:900;margin:0 0 .625em;width:100%}.amp-wp-article-content{margin:0 16px}.amp-wp-article-content ul{margin-left:1em}.amp-wp-article-content .wp-caption{max-width:100%}.amp-wp-article-content amp-img{margin:0 auto}.amp-wp-article-content amp-img.alignleft{margin:0 16px 1em 0}.wp-caption{padding:0}.wp-caption.alignleft{margin-right:16px}.wp-caption .wp-caption-text{border-bottom:1px solid #c2c2c2;color:#696969;font-size:.875em;line-height:1.5em;margin:0;padding:.66em 10px .75em}.amp-wp-footer{border-top:1px solid #c2c2c2;margin:calc(1.5em – 1px) 0 0}.amp-wp-footer div{margin:0 auto;max-width:calc(840px – 32px);padding:1.25em 16px 1.25em;position:relative}.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}.amp-wp-footer p{color:#696969;font-size:.8em;line-height:1.5em;margin:0 85px 0 0}.amp-wp-footer a{text-decoration:none}.back-to-top{bottom:1.275em;font-size:.8em;font-weight:600;line-height:2em;position:absolute;right:16px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cc68ddc{color:#f00}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-b3a15a8{width:100px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-ebaa9f7{width:144px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-5443cfc{color:#000}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cae6213{font-size:14px;color:#000}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cdd8ca0{text-align:center}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-267f6d5{font-size:14px}
- The topic ‘An AMP component ‘script’ tag is present more than once in the document.’ is closed to new replies.