🔮

You can use Utterances for comments. You have to set UTTERANCES_REPO to the repository Utterances will connect to.

That’s it. Elegant will take care of the rest.

You can see a working example of Utterances comments in this article.

Extra Customization

Besides setting UTTERANCES_REPO, you also have control over following variables.

  1. UTTERANCES_THEME. It’s default value is github-light. For other valid values refer to utterances documentation
  2. UTTERANCES_LABEL. It’s empty by default. If set, Utterances will it to the issues it will create.

Warning

Label names are case sensitive. The label must exist in your repo. Utterances cannot attach labels that do not exist.

Emoji are supported in label names.✨💬✨

Show Utterances comments by default

Just set UTTERANCES_REPO variable.

Hide Utterances comments by default

Unset UTTERANCES_REPO variable.

This is the default setting.

Hide Utterances comments by default. Show on Selected

  1. Set UTTERANCES_REPO
  2. Set UTTERANCES_FILTER to True

This will hide Utterances form on all pages.

Now to show Utterances form on selected posts, in article metadata set

utterances_filter: off

Show Utterances comments by default. Hide on Selected

  1. Set UTTERANCES_REPO
  2. Remove UTTERANCES_FILTER or set it to False which is its default value

This will hide Utterances form on all pages.

Now to hide Utterances form on selected posts, in article metadata set

utterances_filter: on

Like this post? Share on: TwitterFacebookEmail


Talha Mansoor Avatar Talha Mansoor is the creator and lead developer of Elegant theme.
Comments

So what do you think? Did I miss something? Is any part unclear? Leave your comments below.


Keep Reading


Published

Category

Connecting With Your Readers

Tags

Stay in Touch

Get New Release Alert