I’m quite fussy when choosing suppliers and service providers.

I’d been wanting to make a subtle tweak to my blog for months.

I’d tried Googling for a solution but without success.

I’d tried various plugins but they didn’t work.

I’d read (and learned, first-hand) that people don’t like reading or interacting with blogs that look ‘dead’.

Which is why I’d wanted to get rid of the “0 Comments” bit, where I’ve turned off comments:

But elsewhere on my blog, I have posts which have got comments, so I didn’t want to disable them globally, and wanted to keep these:

I’ve been a satisfied customer of Elegant Themes* for years.

I used their live chat facility last night.

I wrote two lines, and saw that a reply could take a while.

I left.

I woke this morning to see a friendly follow-up email from them, offering to help.

I wrote back with the issue I was struggling with.

Pankaj replied with this:

In order to hide 0 comments, please go to your WordPress Dashboard > Divi > Theme Options Integration > Head Section and add the following:

<script>
jQuery( document ).ready(function() {
jQuery(‘.post-meta’).each(function(){
thisMeta = jQuery(this).html();
thisMeta = thisMeta.replace(/ \|  0 Comments/g,”);
jQuery(this).html(thisMeta);
});
});
</script>

Let me know if this works! 😀

It works like a dream.

And there’s no way I’d have worked that out for myself.

*affiliate link (definition)

Share This