Created
February 17, 2018 19:25
-
-
Save theimageyard/4ae147e2c9754b5d7ca2c12fe50ce591 to your computer and use it in GitHub Desktop.
Add Javascript Warning
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
add_action( 'wp_footer', 'add_noscript_warning' ); | |
function add_noscript_warning () { ?> | |
<noscript> | |
<div style=" | |
font-family: sans-serif; | |
position: fixed; | |
bottom: 0; | |
left: 0; | |
width: 100%; | |
z-index: 999999; | |
text-align: center; | |
font-weight: bold; | |
font-size: 18px; | |
color: #FFF; | |
background-color: #e7475d; | |
padding: 8px 0 9px; | |
letter-spacing: 1px; | |
border-top: 35px solid white; | |
"> | |
THIS WEBSITE WORKS BEST WITH JAVASCRIPT ENABLED | |
</div> | |
<style> | |
#root-translate, | |
.simplefavorite-button, | |
.secondary-navigation .menu-favorites-item { | |
display: none !important; | |
} | |
</style> | |
</noscript> | |
<? } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment