• Resolved Anonymous User 18532693

    (@anonymized-18532693)


    Hello, I would like to know how can I remove the Category: in front of the title in a category page?

    Thank you for your time

Viewing 1 replies (of 1 total)
  • Theme Author Dylan Ngo – Woostify

    (@duongancol)

    Hi!
    You can add the code below to the child theme

    add_filter( 'get_the_archive_title', 'so_remove_category_prefix' );
    function so_remove_category_prefix( $title ) {
        $title = single_term_title( '', false );
        return $title;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Remove Category: from title’ is closed to new replies.