Customizing Background. | Community
Skip to main content

Customizing Background.

  • February 6, 2024
  • 1 reply
  • 0 views

Alfonso11

Hi Everyone, 

Is there an option to add a gradient background color in Zendesk help page? See that there is an option to Edit Code. Is this something that can be done through Coding? If yes, do we have a sample?

1 reply

Tipene
  • February 8, 2024

Hi Alfonso,

Yes, you can make changes to the background of elements in your help center theme. You'll want to make those changes within the style.css file in the code editor. Here's an example where I've updated the default body element background to be a linear gradient:

body {
  background: linear-gradient(#FF5733, #0000cd);
  color: $text_color;
  font-family: $text_font;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

Here's a link to the documentation which goes in to more detail about custom code in help center themes:

https://support.zendesk.com/hc/en-us/articles/4408839332250-Customizing-your-help-center-theme

I hope this helps!

Tipene