Add this code to functions.php of child-theme:
add_filter('gettext', 'remove_classifier_words', 20, 3);
function remove_classifier_words( $translated_text, $untranslated_text, $domain ) {
$custom_field_text = 'Tag: %s';
if ( !is_admin() && $untranslated_text === $custom_field_text ) {
return '%s';
}
$custom_field_text = 'Category: %s';
if ( !is_admin() && $untranslated_text === $custom_field_text ) {
return '%s';
}
return $translated_text;
}
Hi serg1982,
Thanks for your post. I tried adding it firstly to my functions.php which is in the root of my twentyfifteen folder. Just to test it. But the whole site is not working anymore when i add it to that file.
I’m not using a childtheme for my css, how can I make a child theme just for the functions.php?
But still, if the code isn’t working in the root folder, will it work in the child theme?
Thanks for helping out!
Hi,
Yes I did make a child theme now, I just leave the css file empty. That works fine.
I tried putting the php code of serg1982 into the functions.php file, but it doesn’t work. The website won’t load anymore.
Does anyone know what I can do (or what I’m doing wrong)?
Thanks again
Okay,
I tried it again, now opening the functions.php file with the editor in WordPress and this time it works!
Somehow opening the functions.php file without WordPress and uploading it through FTP, doesn’t work.
But now using the child theme it does!
Thanks all!
This was really helpful! Thank you.
Using twenty fifteen child of course
I have almost got my blog ready to go live, but I am trying to figure out how to remove the word “category” from the front of the post. Like I wanted to have pages, and I wanted to have post go to certain pages, well I found out in order to do this I needed to create categories, well now when I post under the category, it comes up like this… Category:Encouragement. What I want to do is just have the post say Encouragement. I am kind of a newbie to blogging in general, but definitely wordpress. Thanks
I added the code to my twenty fifteen child theme and it worked perfectly. Thanks!
I’ve used this code too. Worked perfectly, thanks.