turn off voting in forum

7 Comments

  • Dan Ross
    Comment actions Permalink

    Hey Chris,

    I'm not sure which theme that screenshot is from, but you can usually remove the code for the votes being displayed in the community page templates in Guide, and remove them from the CSS page. 

    If you have a link to a public page of your community, I can look try to get some  more specific instructions for your case.

    0
  • Chris Brigger
    Comment actions Permalink

    Sure - you can take a look at the page here as an example:

    https://community.environicsanalytics.com/hc/en-us/community/topics/115000318012-Data-Discussion-Canada

    I'm not terribly familiar with the code behind the scenes, but I'd like to just remove it from the forum, rather than the entire community.

     

    Thanks!

    0
  • Nicole - Community Manager
    Comment actions Permalink

    Hey Chris - 

    We typically refer to the "community" and "forum" to mean the same thing; can you clarify what you're differentiating between? 

    The nomenclature we typically use is that you have your Help Center, which is made up of two parts: the knowledge base and the community. The KB is where you create articles, and you can have comments turned on or off. 

    The community, or forum, is where users post questions and agents or users can respond in comments. I took a look at your Help Center, and based on the screenshot you shared, I think you're looking to remove voting from the community but not the knowledge base. 

     

    0
  • Chris Brigger
    Comment actions Permalink

    Yes, sorry, fell back into the old habit we have here of referring to everything as the "community."  Specifically we are looking to turn off the voting and votes in the forum/community.

    The KB can remain as it is.

    0
  • Dan Ross
    Comment actions Permalink

    Hey Chris,

    I took a quick look at the page. In your style.css file in the Guide Code Editor, you might be able to do this in a few ways. 

    you can try adding/editing the existing data for one of these classes(classes are the parts in bold text)

    .post-info {

    display:none;

    }

    OR

    .post-list-item__col post-list-item__col--side {

    display:none;

    }

    to your CSS file.

     

    Here's an example of what that did for me with a quick live test on your first two rows. 

     

    Hope that helps!

    0
  • Chris Brigger
    Comment actions Permalink

    Hi Dan,

    This looks like exactly what I'd like to do but I have a few questions, mostly stemming from the fact that I'm very much unfamiliar with CSS.

    First, did you just remove everything that is currently in those classes and just replace it with:

    display:none;

    When I look at my code I see quite a bit there now:

    @media (min-width: 768px) {
    .post-info {
    float: right;
    text-align: center;
    min-width: 90px;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 6px 12px;
    }
    }

    @media (min-width: 768px) {
    .post-info__count {
    display: block;
    color: #2d2d2d;
    font-weight: 700;
    }
    }

    .post-info + .post-info {
    margin-right: 12px;

    Mind you, I also know we have a custom theme.

    Second, how do I make sure that this applies to the forum part and not my KB articles?

     

    Thanks!

    Chris

    0
  • Dan Ross
    Comment actions Permalink

    Hey Chris,

    The first two classes are tests for screen size before displaying the post info elements. You could add the display:none; to all of them, but I think you could get away with just adding it to the one at the bottom. Guide's got some great preview tools, so you can try it out and see the effect your changes have before publishing live.

    I'd personally keep the existing styling and just add the display:none; to the class in case you decide to return the functionality later. Also, add a comment to that line to that FutureChris knows what the change you made does.

    As for it affecting other parts of your site, I would strongly recommend using Guide's preview tools to test this yourself. As your theme is custom, that class could be reused in other places. I would suggest you check other community pages and also the articles pages. I think those classes are different there (something like vote_count instead of post_info) but custom means that anything is possible.


    Good luck!

    0

Please sign in to leave a comment.

Powered by Zendesk