Support » Theme: Shop Isle » How to remove word “category” from category page

  • I would like to remove the word “category” from the title of a category page. How could I achieve this? Thanks for your help in advance.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey, @ashestostardust

    To remove Category title add it to your theme’s functions.php file.
    Here’s the code:

    function my_theme_archive_title( $title ) {
        if ( is_category() ) {
            $title = single_cat_title( '', false );
        } 
        return $title;
    }
    add_filter( ‘get_the_archive_title’, ‘my_theme_archive_title’ );

    Hope the above code will help you.
    Thanx.

    @snehalb890

    I tried that,

    what do I have to enter in the code?

    Without that I get an error message?

    Do not understand that completely

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.