Site icon Hip-Hop Website Design and Development

Noscript not working because it ought to in wordpress web site

That is what I’ve performed in my customized features mu-plugin:

operate jsdisabled() {
print '<noscript>

<div model="margin:auto; display:table; text-align:center">
<div model="margin:auto; display:table; width:70%">
<h1>Title</h1>
<h2>Some textual content.
</h2>
<p>
<img src="/noscriptimage.jpg"/>
</p>
</div>
</div>
</noscript>';
}
add_action('wp_head', 'jsdisabled', 0);

This code provides noscript tags to wordpress header, however after I check the web page with browser javascript disabled, what occurs is that the noscript message and picture will present, however all the web page content material will present too, in different phrases, noscript is meant to cover all the web site’s content material and present solely a message to guests telling them to allow javascript.

You possibly can confirm it right here: https://lucrebem.com.br/emp-digital/blog-de-nicho