By tom arriola on Monday, 10 July 2017
Posted in Technical Issues
Replies 3
Likes 0
Views 803
Votes 0
How can I fully hide the posting date of comments in komento. I dont want any date with the post at all
There is currently no settings to turn this off but you can edit the theme file /components/com_komento/themes/wireframe/comments/item.php and remove the following block of codes,

[gist]
<div class="es-comment-item-date">
<?php if ($comment->getPermalink()) { ?>
<a href="<?php echo $comment->getPermalink(); ?>" title="<?php echo $comment->getDate(false); ?>"><?php echo $comment->getDate(); ?></a>
<?php } else { ?>
<?php echo $comment->getDate(); ?>
<?php } ?>
<b>ยท</b>
</div>
[/gist]
·
Tuesday, 11 July 2017 00:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Just an an extra thought here, my preferred way of doing this is to use this module:

https://extensions.joomla.org/extensions/extension/style-a-design/articles-styling/add-css/

Create a CSS file (as per the module above's instructions) and in the CSS file have something like:

.es-comment-item-date {
display: none;
}

This takes CSS changes outside of the tempate (e.g. font colours, sizes, etc) then when you update the template you don't lose any changes. Sometimes, you can add this additional CSS in the template itself.

Yes, I know this can be done with template overrides, but it's the simplest way I know and saves you diggiing around in code. Not all extension developers as as generous with their forum feedback as StackIdeas are.

Yes, it means you have to learn some CSS, which is definitely a good thing

Dave.
·
Sunday, 16 July 2017 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing this quick and nifty solution David
·
Sunday, 16 July 2017 21:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post