I would like to add a disclaimer message under "Add new comment" title and above the form in drupal 8 site. I changed the help text on this path /admin/structure/types/manage/article/fields/node.article.comment but nothing changed. Any suggestions please?
1 Answer
You can override field--comment.html.twig
template.
<section{{ attributes }}>
{% if comments and not label_hidden %}
{{ title_prefix }}
<h2{{ title_attributes }}>{{ label }}</h2>
{{ title_suffix }}
{% endif %}
{{ comments }}
{% if comment_form %}
<h2{{ content_attributes }}>{{ 'Add new comment'|t }}</h2>
// you can add your markup here
{{ comment_form }}
{% endif %}
</section>
clear the cache after add new template file