Removing the word "Tags:" from blog footer

Hi, I would like to remove the word “tags:” from the listed tags at the bottom of each blog post. I would also like to remove the commas separating these tags.

I’ve spend ages trying CSS with no avail so I’m hoping you can help me.

I want the tags at the bottom of each post to look like a tag cloud/buttons. This I’ve been able to achieve but I can’t find a way to remove the commas in between and the word “Tags:”

Thanks, I hope this makes sense. I’ve attached a screenshot

Hello Stefan,

Thanks for writing in!

To resolve your issue, assuming that the child theme is set up, please add the following code in your child theme’s functions.php file

// Remove "Tags"
// =============================================================================
function remove_tags_text($translated) { 
  $translated = str_ireplace('Tags:', '', $translated);
  return $translated; 
}
add_filter('gettext', 'remove_tags_text' );
// =============================================================================

Please let us know if this works out for you.

Awesome, thanks RueNel that removed that “Tags:”. Thanks for the quick reply also.

I’m still left with the commas between the tags however. Is there a way to remove these also?

Thanks

Stefan

Hey Stefan,

You can add the following script in the Theme Options > JS section to remove the commas as well:

jQuery(document).ready(function($){
	$('.entry-footer:contains(", ")').each(function(){
		$(this).html($(this).html().split(", ").join(" "));
	});
});

Don’t forget to clear all caches including your browser’s cache after adding the code. Let us know how this goes!

Perfect! It works. Thanks guys

Glad we could help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.