• Resolved heidichris

    (@heidichris)


    Hello everybody,
    Impossible to remove the word title category on my blog. I use masonic theme. I tried to add CSS code but nothing happens (I think that it runs only for twenty-twenty or twenty-twenty one themes). I installed YOAST SEO (free version) to change taxonomy (suppress category URL) but nothing …
    What can I do to get rid of this word category.
    Other point : I noticed French language but It displays : category in English.
    Do you have a solution for me ?
    Thank you very much.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Mario Santos

    (@santosguillamot)

    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.

    Thread Starter heidichris

    (@heidichris)

    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.

    Mario Santos

    (@santosguillamot)

    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.

    Thread Starter heidichris

    (@heidichris)

    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.

    Mario Santos

    (@santosguillamot)

    I’m really glad it works! Happy to help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘remove category title doesn’t run’ is closed to new replies.