• I recently starting getting reports from Google for 12 pages like this:

    Wrong parent HTML tag ‘noscript’ of tag ‘link rel=stylesheet for fonts’
    Custom JavaScript is not allowed.

    <noscript id=”wpfc-google-fonts”><link rel=”stylesheet” href=”https://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic”&gt;
    </noscript>
    <script>document.addEventListener(‘DOMContentLoaded’,function(){function wpfcgl(){var wgh=document.querySelector(‘noscript#wpfc-google-fonts’).innerText, wgha=wgh.match(/<link[^\>]+>/gi);for(i=0;i<wgha.length;i++){var wrpr=document.createElement(‘div’);wrpr.innerHTML=wgha[i];document.body.appendChild(wrpr.firstChild);}}wpfcgl();});</script>

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hello @david57

    Have you added any custom script code?

    Can you please try to deactivate the other plugin which you are using and check if any plugin adding these code?

Viewing 1 replies (of 1 total)
  • The topic ‘Wrong parent HTML tag ‘noscript’ of tag ‘link rel=stylesheet for fonts’’ is closed to new replies.