Hello @heidichris! I was looking at your current theme, Masonic, and it seems it is the one adding the “Category: ” string that you want to remove. For that reason, I recommend asking at their website, so the theme’s developers and support community can help you with this.
Anyway, it seems the theme hasn’t been updated in a while so, if you feel confident with code, you can also solve it directly in the theme. The “Category: ” string is added in line 59 of the extras.php file inside the inc folder. Changing that for the following should do the trick:
$masonic_header_title = single_cat_title('', false );
If I am not mistaken, the way they are adding the string is also the cause of displaying Category also in French. It seems they aren’t handling Internationalization.
Hello Mario,
Thank you for your message. I went on masonic forum on wordpress and found a solution adding CSS to my theme
.entry-standard.fa.fa-folder-open {
display: none;
}.
Unfortunately, it doesn’t run … And I’m not very confident with code, where can I find this code in my theme ?
Thank you for your answer.
I am not 100% sure, but I don’t think the problem you were having with Masonic cannot be solved using CSS.
I’ve just seen that you changed your theme to Twenty Seventeen. If you finally use that one, it uses a different function, so the solution could be simpler. You could install a plugin similar to Code Snippets, that allows you to add small pieces of code, and add the following line:
add_filter( 'get_the_archive_title_prefix', '__return_empty_string' );
If you decide to keep Masonic theme and want to modify the theme directly, you can do that by modifying the files in your server or going to Appearance -> Theme File Editor, and in the right sidebar go to Inc -> extras.php. There you could change line 59 as suggested above. Keep in mind that this method is riskier and if you update your theme at some point, it would be overwritten.
Hello Mario,
I kept twenty seventeen and I installed the plugin code snippets and add the code and – good surprise of the day – everything is OK, this ugly word disappeared.
THANK YOU SO MUCH Mario.
Good evening.
I’m really glad it works! Happy to help!