Created
May 20, 2019 01:56
-
-
Save westonruter/2f6ea3b037336c10e3e344f55fcee4ce 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 Noscript Style | |
* Plugin URI: https://wordpress.org/support/topic/amp-issues-detected-by-google-search-console/ | |
* Author: Weston Ruter | |
*/ | |
add_action( | |
'wp_head', | |
function() { | |
?> | |
<noscript><style type="text/css"> .wpb_animate_when_almost_visible { opacity: 1; }</style></noscript> | |
<?php | |
} | |
); | |
add_action( | |
'wp_footer', | |
function() { | |
?> | |
<p class="wpb_animate_when_almost_visible">test</p> | |
<?php | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment