Skip to content

Instantly share code, notes, and snippets.

View luizfaias's full-sized avatar

Luiz Faias Junior luizfaias

View GitHub Profile
@luizfaias
luizfaias / hc_add_robots.js
Last active February 28, 2020 14:22
Adds the noindex meta tag to all pages on the Help Center, except the home page
<script type="text/javascript">
//prevents all pages, except the home page, from being indexed by search engines
if(window.location.pathname.match(/\/hc\/(.*)\/([a-z])/)) {
var meta = document.createElement('meta');
meta.name = 'robots';
meta.content = 'noindex';
document.getElementsByTagName('head')[0].appendChild(meta);
}
</script>
@luizfaias
luizfaias / hc_add_custom_font.css
Created January 30, 2019 12:55
Adding a custom font to your Zendesk Guide theme
/*** BELLABOO font by Marcelo Reis Melo ***/
/*** http://freegoodiesfordesigners.blogspot.com/2015/02/hipster-free-font-bellaboo-by-marcelo.html ***/
@font-face {
font-family: 'BELLABOO-Regular';
font-style: normal;
font-weight: 400;
src: url('$assets-bellaboo-regular-eot'); /* IE9 Compat Modes */
src: url('$assets-bellaboo-regular-eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('$assets-bellaboo-regular-woff2') format('woff2'), /* Super Modern Browsers */