Help Center CSS cookbook (Guide Professional and Enterprise)

Have more questions? Submit a request

83 Comments

  • Trapta
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

     

    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
    Comment actions Permalink

    Hi Heather,

    Try this;

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

    0
  • Heather
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    @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
    Comment actions Permalink

    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 - Community Manager
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

    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
    Comment actions Permalink

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

    0
  • Pedro Rodrigues
    Comment actions Permalink

    Awesome! Happy to help :-)

    0
  • Andres Rincon
    Comment actions Permalink

    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 - Community Manager
    Comment actions Permalink

    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

Please sign in to leave a comment.

Powered by Zendesk