Created
February 13, 2014 10:24
-
-
Save munen/8972845 to your computer and use it in GitHub Desktop.
WP search placeholder
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
searchField = jQuery("#s"); | |
if (window.location.pathname.substr(0,3) == '/en') { | |
searchField.prop("placeholder", "Search"); | |
} else { | |
searchField.prop("placeholder", "Suche"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment