Hello to all,
I need to add a little bit of css to the comments, at the moment I only have a cell without format. My guess is to change the snippet below from the file comments.html.twig in the folder partials: (But I’m not having success).
It’s the that file the one to change?
thanks in advance.
Carlos
{% if grav.twig.comments|length %}
<h3>{{'PLUGIN_COMMENTS.COMMENTS'|t}}</h3>
<table>
{% for comment in grav.twig.comments|array_reverse %}
<tr>
<td>
{{comment.text}}
<br />
{{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author}}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
Change the code to something like this, So I can add css format.
{% if grav.twig.comments|length %}
<h3>{{'PLUGIN_COMMENTS.COMMENTS'|t}}</h3>
{% for comment in grav.twig.comments|array_reverse %}
<div>
<p class="p-comment"> {{comment.text}} </p>
<br/>
<br/>
{{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} <h4>{{comment.author}}</h4>
</div>
{% endfor %}
{% endif %}