Help Center CSS cookbook (Guide Professional and Enterprise)

Return to top
Have more questions? Submit a request

96 Comments

  • Trapta
    Community Moderator

    Hi @Alex,

    If you are using default Copenhagen theme then this is what you have to do -

    Go to line no.709 in your CSS file and replace 

    .hero-inner {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 610px;
    margin: 0 auto;
    }
    1
  • Mike Tamosaitis

    How do I break up the categories on my home page? I have like 23 categories and I want to break them up into different sections on my home page with a title at the top of each section.Any help would be appreciated. 

    0
  • Reed Matheny

    Hi, question for folks here:

    I'm trying to move the article-sidebar to the right side of my article page, so that the orientation of the article grid is reversed, resulting in the following layout: 

    Free Space | Content | Sidebar

          17%       |   66%    |   17%

    Seems like it would be simple change to the CSS, but I must be missing it here. Let me know if you have any pointers. Thanks!

    0
  • Trapta
    Community Moderator

    Hi @Reed,

    Considering that you are using Copenhagen Theme, go to line no. 1172 in your style.css file and replace the code with the below code -

    .article-container {
    flex-directionrow-reverse;
    }

    Let me know if you face any issue.

    Team Diziana

    0
  • Heather

     

    Having a bit of an issue with trying to modify the appearance of links in my articles.

    In my CSS, the only code snippet that looks somewhat like the one posted in this article for links, is this:

    .article-body a:visited {
    color: darken($link_color, 20%);
    }

    It feels as though this snippet is used to control the appearance of a visited link, but I can't tell if it's also supposed to be used to control the appearance of an un-visited link.  Right now the link text in our articles is a very dark blue--almost indistinguishable from the regular black text.  I wanted to change that to a lighter blue (something like hex #4289f4) but if I try to add that code to the above snippet, nothing really happens.

    If I add the link code snippet shown in the above article, and enter a color number, there is still no change to the link appearance.  I've even tried wildly different colors (like bright red) to test this, but...nothing.  I'm saving my code changes and previewing them, as well as logging in to the Help Center and looking at articles directly, but all links continue to show as a dark blue.

    Any ideas on what I might be doing wrong?  

    0
  • Andrew Warner

    Hi Heather,

    Try this;

    .article-body a {
    color: #4289f4;
    }

    0
  • Heather

    Thanks Andrew, that worked.

    But...

    Now there's no change to a link when you click it, so no way to tell what links you may have already visited on a page.  Any way to get both a custom link color and a way to change the color when a link's been visited?

    Thanks!

    0
  • Andrew Warner

    Ah, sorry i should have stated that you'd need both, like so;

    .article-body a {
    color: #4289f4;
    }

    .article-body a:visited {
    color: darken($link_color, 20%);
    }

    0
  • Heather

    Hmmm.  So, when I have just the one snippet, then I can change the link color, no problem.  But when I have both snippets, the link color won't change, no matter what color code I put in.

    So right now my scenarios are like this:

    With just the .article-body a code snippet - link color can be changed, but no indication of what links have been visited.

    With just the .article-body a:visited snippet - link color cannot be changed, and no indication of what links have been visited

    With both the snippets - link color cannot be changed and no indication of what links have been visited

    Not sure what's causing the problem, but when the .article-body a:visited snippet is present, it doesn't seem to like it.

    0
  • Emma MacDonald

    I'm interested in changing the text of the 'Was this article helpful?' button. I believe these instructions just explain how to change the style/format. Is there a way to edit this text? 

    0
  • Trapta
    Community Moderator

    Hi @Heather,

    Try this:

    .article-body a {color: #4289f4;}
    .article-body a:visited {color: darken(#4289f4, 20%);}

    Let me know if this solves your issue.

    Team Diziana

    0
  • Trapta
    Community Moderator

    Hi @Emma,

    In your article_page.hbs template replace {{t 'was_this_article_helpful'}} with the TEXT you want to show and you'll be good to go.

    Let us know how it goes for you.

    Team Diziana

    0
  • Emma MacDonald

    Hi @Trapta,

    Thanks for the reply. It seems that whenever I change anything about {{t 'was_this_article_helpful'}}, the text disappears from the article page entirely. Can you give me an example of what it should look like if I want it to say "Did this article answer your question?"? 

    Thanks!

    0
  • Heather

    Hi @Trapta,

    Thanks for the response.  When I use the code snippet provided there's still no color change to indicate links have been visited.

    Interestingly enough, if I try to use the snippet provided with a different color code (e.g. #990099, etc.) all the links go black, same color as the text, no matter what color code I use.  And still nothing indicates clicked links.  The only way I can get the links to go back to a bright blue is to change the code back to #4289f4.

    Thanks!

     

    0
  • Trapta
    Community Moderator

    @Emma,

    It should look like this

    <span class="article-votes-question">Did this article answer your question?</span>

    Let us know how it goes for you.

    Team Diziana

    0
  • Timothy Rogers

    Hello All, 

     

    I have a few things that I would like to change on my modified Copenhagen Set.

     

    1. I would like to make the FAQ and Announcement buttons Solid all the time. I am able to set the color, but it is transparent until I hover. I want it to be the color without the hover.

    2. I would like to make the Submit a Request link a button in the header. I have seen this done, but I have not been able to find any hints on how to do it. I feel like i have read that I would need to remove the current code for the link, and replace it with button code.

    3. I would like to remove the graphic where the search field is,and just have the search field on the main background.

    4. I would like to change the search field to have a button on the right side of the field that says search, and match the colors to what my other buttons are set to.

     

    I can separate these into separate questions if the makes more sense.

     

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Timothy, 

    Hopefully some of our community members can jump in here and provide some guidance for you :) 

    In the meantime, I would recommend taking a look at the following documentation: 

    We also do have a Professional Services team available that can assist with these customizations at an additional cost. 

    If this is something you're interested in let us know. We can get a ticket created on your behalf and passed over to the appropriate team.

    Cheers!

    0
  • Suman Saha

    Hi Charles,

    I need a help with customizing the help center..I have been able to customize the copenhegan theme as below:

    What I need is.... when the user clicks on any of the Buttons above, application should be taking me to a Ticket form (from the list) as appropriate, skipping the new_request_page.hbs (request page).

    The ticket forms list are as below:

     

    Do you have any articles handy, that can guide me?

    Thanks,

    Suman

    0
  • Pedro Rodrigues
    Community Moderator

    Hi Suman, if I understand correctly, what you want is to find the ID of the form you wish to link.

    You can get each form's ID by editing it, and the URL will give you the ID, as in:

    yourdomain.com/agent/admin/ticket_forms/edit/XXXXXXXXX

    Once you have the form IDs, the path behind each anchor button should be like so:

    yourdomain.com/hc/es/requests/new?ticket_form_id=XXXXXXXXX

    0
  • Suman Saha

    Hey Pedro...Thanks for the help .... your suggestions worked great...Thank u again...

    0
  • Pedro Rodrigues
    Community Moderator

    Awesome! Happy to help :-)

    0
  • Andres Rincon

    Is it possible to add a background image to a header section? I want it to be in line with the hero image, and have it be a sticky header as users navigate down the page. 

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Andres,

    It looks like one of our Community Moderators was able to provide some custom code on the following post: Help Center - Change design header to match hero image

    You may want to give that a try and see if that gets you the results you're looking for.

    Hope this helps!

    0
  • Ashley Sargent

    Hi - I have a few things that I need to do and am finding myself stuck. Was hoping some wonderful people in here could help me figure it out. My helpdesk is: https://dialere.zendesk.com/hc/en-us

    1. I also would like to add sub categories to my navigation - so for example, where it says, "Programs", I'd like to add dropdowns that when clicked go to their respective Articles.
    2. Is there anyway to have the logged in first name to show in the navigation but not the last name?
    3. Is there a way to remove "My Activities" from my profile dropdown in the top Navigation?

    Thank you in advance to anyone who helps.

     

    0
  • Stassa Miller
    Community Moderator

    Hi @AshleySargent,

    On #1 : Which plan are you subscribed to?

     

    You can try one of these two options for #2:

    It is work-intensive on your part, but you can enter an Alias in their profile to show only the first name: Go to Settings > People > 

    you can enable the option to edit their names in their profile and the end-user can opt to show only their first name:  (Go to settings > customers)

     

    #3: Why do you wish to remove my activities?

    0
  • Ashley Sargent

    Hi Stassa.

    1) Professional

    3) I think the client would just prefer it to be more clear, so is there a way to change the label from My Activities to My Tickets?

    0
  • Nicole S.
    Zendesk Community Team

    Hi Ashley - 

    I believe the solution presented in this community post will do what you're looking for: 

    Changing all "My Activities" text to "My Tickets"


    0
  • Genevieve

    Hi there, just a quick one. I'm trying to change the css style of the search recommendation links (for example, change the blue text colour to green) but can't seem to find the location? 


    0
  • Trapta
    Community Moderator

    Hi Genevieve,

    Add the below code at the bottom of your style.css file.

    zd-autocomplete-option {color: red !important;}

    Let me know how it goes for you.

    Thanks

    0
  • Genevieve

    Hey Trapta, this didn't work for me :( Any thoughts? 
    Thanks for your response

    0

Please sign in to leave a comment.

Powered by Zendesk