Your sites Log in Sign up Menu

Adding Commento on the main page

I'm using Commento, but the problem is that it is lacking visibility. How could I add a "Comments" link under the post date on the left, on each post, on the main page? Thanks.


3 years ago, 5 replies   Improve this question

To add a comments link under the post date, you will want to edit the code inside the {{#entries}} block in your template's entries.html file.

{{#entries}}
...
<a href="{{{url}}}#comments">View comments</a>
...
{{/entries}}

In order for this to work, you would need to wrap the comments themselves inside an element with the ID comments, like this:

...
<section id="#comments">
{{> plugin_html}}
</section>
...
Answered 3 years ago · Improve this answer

I understand the first part of your answer, not the second part. Can you elaborate a bit more?

Answered 3 years ago · Improve this answer

Did you miss that other question? I'm not sure to understand what to do...

Answered 3 years ago · Improve this answer

Please excuse me – here's some more information about the second part, in which the goal is to wrap the comments in an element with the ID comments:

  1. Open up your template's entry.html file in the template editor.
  2. Locate the tag {{> plugin_html}}, it should be inside the {{#entry}} block. Then wrap it in the following HTML element:
<section id="#comments">
{{> plugin_html}}
</section>
Answered 3 years ago · Improve this answer

Thanks, seems to do the job.

Answered 3 years ago · Improve this answer