Skip to content

Instantly share code, notes, and snippets.

@ETBlue
Created May 29, 2011 12:16
Show Gist options
  • Save ETBlue/997733 to your computer and use it in GitHub Desktop.
Save ETBlue/997733 to your computer and use it in GitHub Desktop.
conditional hide language switch button in Blogger
<script type="text/javascript">
var postUrl = "/2011/03/blogger-steps-add-language-switch.html";
var currentUrl = window.location.pathname;
if (postUrl != currentUrl) {
$('.lang-switch-button').toggle();
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment