Created
April 9, 2019 22:33
-
-
Save westonruter/21cb7523f1de25866b1373d5ae4b9c43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Try custom noscript style in head. | |
* Plugin URI: https://wordpress.org/support/topic/amp-invalid-on-one-site-only/ | |
*/ | |
add_action( | |
'wp_head', | |
function () { | |
?> | |
<noscript><style type="text/css">.adzone { visibility: visible!important; height: auto!important; }</style></noscript> | |
<?php | |
}, | |
0 | |
); | |
add_action( | |
'wp_footer', | |
function () { | |
?> | |
<div class="banner-top" role="banner"><div class="wrap-inner"><div id="wppas_custom_widgets-5" class="widget wppaszone"><div data-adbanner-effect="none" data-adbanner-id="1382" class="adzone adzone-1382 amp-wp-0aa0e27" id="adzone1382"><div class="pasinfotxt above"><small class="amp-wp-4ffe6ec"></small></div><div class="wppaszone paszone-1382 amp-wp-ef76707"><div class="adzone-container paszoneholder-1382" style=""><div class="pasli pasli-1555 amp-wp-0adff40" data-duration="10000" data-bid="1555" data-aid="1382"><a class="wppaslink" href="https://www.wptotal.com.br/go/hostgator?b" target="_blank" rel="nofollow"></a></div></div></div></div></div></div></div> | |
<?php | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment