Support » Theme: Shop Isle » Remove Category from Category

  • Resolved ekerm

    (@ekerm)


    Hello,
    I have already tried several things, but unfortunately did not funtkioniert.

    How do I manage to remove the “category:” category listing?

    Thank you

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @ekerm

    I’d suggest you create a child theme and add the following code in the functions.php file of your child theme.

    add_filter( 'get_the_archive_title', function ($title) {
    
        if ( is_category() ) {
    
                $title = single_cat_title( '', false );
    
            } elseif ( is_tag() ) {
    
                $title = single_tag_title( '', false );
    
            } 
    
        return $title;
    
    });

    Let me know how it goes.

    @poonam9

    Sorry for my late answer. I was on Vacation.

    Thank you, it helps….

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