Set a page background image in Help Center



Posted Aug 20, 2013

We were able to customize our Help Center with just a bit of CSS/Google-foo. I was able to add our trademark image as a faded background to our support articles.

 

 

In Help Center's CSS, I looked for the background, found it and referenced our custom image. 

To edit the CSS for your Help Center, see Customizing the CSS or JavaScript

The net result was the following:

body {background-image:url('//assets.zendesk.com/hc/theme_assets/65710/1931/watchman-zendesk-tower-gray.png');
background-repeat: no-repeat;
background-attachment:fixed;
background-position: bottom right;}

You will need to upload the image to your Help Center. To do so, see  Uploading and using your own assets.

 

This turned out to be much simpler than the "figure out how to override our CSS" method of customization which has flummoxed me with similar site designs.

 https://watchmanmonitoring.zendesk.com/

Happy Zendesking!

-Allen Hancock

Watchman Monitoring, Inc.


0

35

35 comments

Thanks for that. I should have clarified that I'm trying to add a background image into the top header area, behind the search window. Do you know how I would add that code into the css tab?

0


You need to add the code to the CSS tab not on each page. This will automatically add the background to all the pages on your site rather than you having to add the code to each page yourself.

Basically the code tells the site to place this image on each page between the opening < body > tag and closing </ body > tag. As every page has to have opening and closing body tags it's automatically applied to all pages for you.

Hope it helps

0


If anyone can help with this, I greatly appreciate it. Here's what I did, according to the initial instructions. I added code starting with line 16 and ending line 21. What am I doing wrong?

0


Thanks for sharing this, Neil!

0


I tried setting a background image on our knowledge base but kept having an issue where the bottom of the background image was being cut off when there was very little content in the main body area of the category, section and article pages.

I spent a ages trying to find a fix for this and eventually I found the only thing that worked was adding min-height: 900px; to the body { style within the CSS (see images for examples)

Before

After

Hopefully this will stop others having to spend hours looking for the answer and experimenting.

0


Thanks for the tip, Michael! :)

0


@Steffi - This may be moot but you can use this coding to adjust the backgroung image size:

background-size: XXpx XXpx;

(XX represents the pixel size)

Additionally, as a non-coding option, you can use any third party site to adjust the size of the original image. I use  http://www.resize.it/

0


This was amazing! I have no background in working with this kind of code and I did it.

I have just one question: can you change the size of the background image in the code?

Thanks :)

0


I was having issues with the image not displaying properly on all pages because I had the background information in the BODY instead of the HTML. So I moved the following CSS to my HTML tag and no more issues.

background: url("//p2.zdassets.com/hc/theme_assets/47685/200073670/winstonbackground3.png") no-repeat center center fixed;  
-webkit-background-size: cover;  
-moz-background-size: cover;  
-o-background-size: cover;  
background-size: cover;

0


@Ana - Glad to hear.  .tiff files do not do well in browsers.  Just took a quick look at your site and I see you have a image there now.  You can add the background to different elements depending on where you want the image to show up.  For example if you want the image show up below your header then you can do that. Here is an example on my test site where I'm using a full background images with a slider.  

http://moderatorwes.zendesk.com

0


Post is closed for comments.

Didn't find what you're looking for?

New post