Help Center – Adding icons into your theme | The place for Zendesk users to come together and share
Skip to main content
ModeratorWes
Sep 26, 2013 4:33 AM UTC

Help Center – Adding icons into your theme

Zendesk level: Beginner

Knowledge: HTML

Time Required: 10 minutes

Updated:  07/23/14 - Updated to latest Font Awesome CDN

Updated:  04/21/15 - Updated to latest Font Awesome CDN

Icons play a vital role in web design. Even though they can be quite small and might seem redundant, they play many different roles. Icons can be a great way to bring essential content to the point. They are a great attention grabber and they help your website visitors to find and scan content.

This tutorial will show you how you can easily embed icons into your Help Center.  You can add icons to your header, footer, home page, categories page, accordions, articles, buttons, etc..   

FontAwsome has a good selection of icons and its super easy to use, so I will use them in all of my examples below.

Let’s get started!

You don't have to download or install anything--just point to the Font Awsome css file like so.

  1. From the tools panel, select Customize Design.
  2. Select Edit Theme.
  3. Select Document Head and add the following:

<link href="//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet">

As shown here:(please note this image shows an older version-the correct version is above)

 

Now you are ready to start embedding the icons into your Help Center.  You can see how to type the code and some cool examples from here.

Examples

Below are some examples of how you can embed icons into your Help Center’s Design. 

If you want to show some of your examples please add a comment and attach an image of how you used icons in your theme.

Nav Icons & Code:

 

 

 

 

Nav Buttons & Code:

 

 

 

 

Article Icons:

 

Large icons on the Home Page:

 

One of my favorite Social Icons:

 

This topic has been closed for replies.

112 replies

Oct 23, 2013 2:58 AM UTC

Hi Wes,

Great article as usual. I am a super beginner at this but a quick learner. Just need a few tips on where to actually put the individual icon codes. I am using the humble squid theme and am trying to place different icons above the category titles. Any help would be greatly appreciated.

Cheers

Andrew

Translate
ModeratorWes
Oct 23, 2013 3:01 AM UTC

@Andrew - are you wanting to do something similar to my Large Icons on Home Page example above.

Translate
Oct 23, 2013 3:07 AM UTC

Thanks Wes,

Yes like that example.

 

Translate
ModeratorWes
Oct 23, 2013 3:25 AM UTC

@Andrew - Our HelpCenter is built off the Bootstrap framework which makes everything responsive and because of that I don't have to write alot of code because its already built into Bootstrap.  However we can also accomplish that same look by adding some extra CSS.  Since I assume you are not going to use the Bootstrap framework like I did, let me write out the CSS you will need.  I'll try to post something for you tomorrow to look at so you can let me know if I'm heading in the right direction.

If you want to read up on Bootstrap you can do so here:  http://getbootstrap.com/

You can actually see my Bootstrap 2 column code on how I did the boxes from here if your interested (this is actually my entire home page although its changed a little now) :  http://bootply.com/82678

Translate
Oct 23, 2013 3:36 AM UTC

Thanks so much Wes.

I will definitely look into Bootstrap for future changes to my help centre.

Thanks again.

Translate
ModeratorWes
Oct 23, 2013 4:14 AM UTC

Andrew one more question for tonight.  Do you want your icon above or to the left of the text.  See attached on the left and my example they are above.  Just want to make sure I provide you with the correct code.

Translate
Oct 23, 2013 4:17 AM UTC

Above the text would be best.

Translate
ModeratorWes
Oct 23, 2013 6:20 PM UTC

Take a look at this test site.  I took a few of the categories from your site. Is this how you want it to look.  I modified one line of CSS to align it correctly and the rest is HTML.  Just let me know and I will post the code here for the first three blocks and then you can copy and paste to get the rest of yours in there.

https://moderatorwes.zendesk.com/hc/en-us

Translate
ModeratorWes
Oct 23, 2013 7:13 PM UTC

Font awesome updated to version 4.0.  I've edited the code that needs to be copied into the Document Head.

@Andrew - make sure you update your document head as the code I send will include the new version 4.0 icons.

Translate
Oct 24, 2013 3:01 AM UTC

Thanks Wes! This inspired me to add a icon to the 'see-all-articles' link in the Section page.

 

Translate