Created
December 4, 2012 17:17
-
-
Save robertkowalski/4206422 to your computer and use it in GitHub Desktop.
adding meta tags to head with javascript
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
var meta=document.createElement('meta'); | |
meta.name='viewport'; | |
meta.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'); | |
document.getElementsByTagName('head')[0].appendChild(meta); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had the option to add the tag using
article_page.hbs
file. This file runs on every article in my Zendesk Help Center.All I had to do was add the following to the beginning of that file: