Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Discussion options

You must be logged in to vote

End of article

You can do a template override of components/com_engage/tmpl/comments/default.php.

Hint: you can do template overrides from System, Site Templates. Click on your template, then go to the Create Overrides tab. Click on com_engage, comments. This creates your override files in templates/YOUR_TEMPLATE_HERE/html/com_engage/comments. Delete all files except default.php in there.

In that file there's this piece of code which prints the number of comments:

	<h3 class="akengage-title h4 border-bottom mb-2">
		<?= Text::plural($this->headerKey, $this->pagination->total, $this->title) ?>
	</h3>

Change it to this in your override:

	<?php if ($this->pagination->total > 0): ?>
	<h3 clas…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Jotinha-jrb
Comment options

You must be logged in to vote
1 reply
@nikosdion
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants