Created
December 21, 2016 16:39
-
-
Save kylewest/f98fb9a989c468b51a24fd8a405202c4 to your computer and use it in GitHub Desktop.
displays a custom message when url matches the regex in code.
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
<!-- put this code in custom html <head> section (Website Configuration) --> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
if ( /b\-11854/i.test(window.location.href ) ) { | |
$("#allbrands").before("<div style='background:#FFF;text-align:center'><h2>We can get any Mazda parts.</h2><h2>Please <a href='/contact'>CONTACT US</a> if you don't see the parts that you need.</h2></div>"); | |
} | |
}); | |
</script> |
Author
kylewest
commented
Dec 21, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment