Delete category prefix in category header

This topic has 7 replies, 4 voices, and was last updated 1 weeks ago ago by Tony Rodriguez

  • Avatar: ziga32
    ziga32
    Participant
    November 25, 2025 at 11:10
    6 Answers
    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 25, 2025 at 12:03

    Hi @ziga32,

    Please add the following code under functions.php file locates in your child theme:

    
    function n2t_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Category: ' :
                $translated_text = '';
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
    

    Hope it helps!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 25, 2025 at 12:08

    Hello @ziga32,

    The specified strings are located in the xstore/templates/breadcrumbs.php file: https://prnt.sc/4SbMj6QvGnJd. These strings are available for translation using the Loco Translate plugin or other similar translation plugins.

    To remove such a string, you can either copy the mentioned file to your xstore-child directory, maintaining the same path, and make any desired modifications. Alternatively, you can translate the specified string to an empty value or a space character using the plugins mentioned above.

    Alternatively, you can use the snippet provided above.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: ziga32
    ziga32
    Participant
    November 25, 2025 at 12:13

    Snippet worked great, many thanks!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 25, 2025 at 14:22

    Hello @ziga32,

    We are glad to hear that the snippet worked well for you. Thank you for your kind feedback!

    Best Regards,
    Jack Richardson
    8Theme’s Team

    Avatar: ziga32
    ziga32
    Participant
    November 25, 2025 at 14:23

    Thanks for the support! My topic “delete category prefix in category header” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    November 25, 2025 at 14:23

    Dear ziga32,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘delete category prefix in category header’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.