[ARCHIVED] Help Center - Adding Google Fonts to your Theme | Community
Skip to main content

[ARCHIVED] Help Center - Adding Google Fonts to your Theme

  • October 17, 2013
  • 47 replies
  • 0 views

Show first post
This topic has been closed for replies.

47 replies

  • July 9, 2015

Update: There was an $ at the wrong place.. Problem solved :)


ModeratorWes

@Eva - Awesome, glad to hear you got it all worked out.  Best of luck.


  • September 5, 2016

Is it possible to display Google fonts on mobile version of the theme?


ModeratorWes
  • Author
  • September 6, 2016

@Mischa - If your theme is responsive then yes, if you are using the Zendesk mobile then I don't believe so.  With responsive themes you can turn off the Zendesk mobile as the theme will work across all the devices.  Zendesk has one responsive theme called "Copenhagen".  Use that theme and turn off the mobile in your Help Center settings.


  • September 6, 2016

Thank you, Wes! We do indeed use Copenhagen theme. How exactly do I turn off mobile in the settings exactly?

Also - not related to this - how do I make my logo a bit bigger on a Copenhagen theme?


ModeratorWes
  • Author
  • September 6, 2016

@Mischa - Turn off mobile go to "General" - "Help Center Settings" and uncheck "Mobile Layout".

Make logo bigger do the following:

Go to "General" - "Customize Design"

Go to "CSS" tab

Find line 418 should look like below:

.logo img {
max-height: 37px;
}

Change your max-height to be larger.


  • September 6, 2016

Thanks!!


ModeratorWes
  • Author
  • September 6, 2016

@Mischa - Your welcome!  Best of luck


  • March 4, 2017

@Wes Thumbs up, really easy to do this, thanks a lot!!!

I am using the Gotham Font from typograpy.com and the workflow is the same like your Google Font workflow. I am using font-weight: 300 for regular text and 500 for strong.

Now i got the problem that all the text tagged as <strong> in my articles is in font-weight: 700 because the WYSIWIG-Editor defines it as 700. Is there an easy way to change it with CSS? :)

Sorry for my bad English ;)

Cheers,
Marco


ModeratorWes

Hi, Marco - Any way you can post the link to your HC if it's open to the public so that I can see the code.  I'm sure there's an easy way to edit it via CSS but it would help if I can see what is going on. 


  • March 6, 2017

@Wes

Sure, here is the link: https://portal.legalflex.de

FYI: I am on the Enterprise Plan


ModeratorWes

Great thanks - Can you give me a link to an article where you have used the strong tag.


  • March 6, 2017

@Wes

Sure here is a link where the formatting was made with the WYSIWYG-Editor. I already tried to solve the the problem manually in this article with the subtitle (above the picture) and the first headline "Wann ist eine fristlose Kündigung unwirksam?"

https://portal.legalflex.de/hc/de/articles/115001572609-Fristlose-Kündigung-In-welchen-Fällen-der-Chef-schlechte-Karten-hat


ModeratorWes

@Marco -  If I understand correctly you would like to use font weight of 500 instead of 700.  If that's correct add the following to your CSS tab.

b, strong {
font-weight: 500 !important;

  • March 6, 2017

@Wes - Awesome! It works!!! Thanks a lot for your quick support! ;)


ModeratorWes

@Marco - Glad to hear and hope you have a great day!


Justin30
  • May 24, 2017

Does this tutorial add the google font style to email triggers sent to ticket requesters? I am interested in using a google font for both our Help Center and for emails sent to customers through Zendesk Support.


Hi @Wes -

Articles on our support site include system response code that people may copy/paste into their command line. For an example, look at this article.  

The green font represents command text (both the user entered, and system response) and right now, I can only apply a color to distinguish it from the regular body text. Using a non-monospace font is not handy for system commands as I need the ability to easily line up system response 'tables'. Right now, I have to physically create a ZDtable for the system response. 

Normally our documentation uses Courier New (a mono-space font) or Lucida Console, but I can't find a way to define a new font style. 

Thanks in advance!


ModeratorWes

@Lisa - Sorry for the delayed response as I've been out of town at a conference.  You can import and apply any font that you would like.  You can upload the fonts to the Asset area then call and import them in via the CSS tab.  It would look similar to below but your URL would be from the Asset URL.

@font-face {
    font-family: MYfont;
    src: url(sansation_light.woff);
}

You could also install a code highlighter which could highlight your code differently.  I haven't tried any with the new Copenhagen theme but they did work in the past themes so they should still apply.


  • May 16, 2018

Hello!
Does Zendesk support the font Roboto?

 


ModeratorWes

Hi Cilla and welcome to the community.  The Help Center will take any Google font.  As long as you are on a plan that allows you to edit our Help Center you should be able to follow the instructions above.  Just add the google font link into the "Document Head" then go into your CSS and call that font.

Below goes into the "Document Head"

<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

In your CSS you will call it like below:

font-family: 'Roboto', sans-serif;


  • May 16, 2019

The interface to edit the Document Head has changed it is now located:

Guide Admin > Customize Design > View Theme > Edit code > document_head.hbs

Thanks to Jessie for that one