Add ratings to individual articles

By default, the Ratings section displays in all articles.

Override this behavior in individual articles by selecting the Remove feedback ability option in Display Settings.

But if you'd prefer to have the ratings section only in a small number of specific articles, you can remove the template from your articles overall and then add it only to the articles you want. We recommend using a snippet for this so you don't have to remember the template merge code.

First, let's remove the template from all articles:

  1. Go to Customize > Style (Custom HTML & CSS). The Style Settings page opens.
  2. In the Customize HTML, CSS, and JS section, select Custom HTML.
  3. Select Article from the Select HTML section to edit dropdown.
  4. Delete [template("rating")] at or around row 19.
  5. Save your changes.

Now let's create a snippet that contains the template so you can add it to the articles you'd like:

  1. In the left navigation, select Snippets. The Snippets library opens.
  2. Select + Create New Snippet. If you're not familiar with creating snippets, refer to Creating a snippet.
  3. Enter a Snippet Name, like Article Rating section.
  4. Enter a Snippet Description, like Add this snippet to articles to display the ratings section.
  5. Select the Snippet Content dropdown and select Code Editor.
    Sample gif showing the switch to Code Editor. Hover to play.
  6. Copy the code below and paste it into the code editor:
    [template("rating")]
  7. Select Create to finish creating your snippet.

Now you can insert the snippet into the bottom of any article where you want the ratings section displayed.