Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #121941
    Jennifer Sims
    Participant

    Dear Support,

    How do I change or remove the word ‘Category:’ from the title in my archive posts section.

    Kind regards Jen

    #121955
    wensolutions
    Participant

    Hello @jenifer,

    If you wish to remove the word “Category” from your category Archive, you will need to add a block of code for the quick customization. This can be done with the help of child theme.

    To learn more about child themes, check the link here : https://codex.wordpress.org/Child_Themes

    You can also automate the child theme creation with the help of Child theme generator plugins.

    After Creating and activating the child theme, please paste in the following code in your child theme’s functions.php file :

    add_filter( 'get_the_archive_title', 'wen_business_pro_child_archive_titles' );
    
    function wen_business_pro_child_archive_titles($title) {
    
        if ( is_category() ) {
    
                $title = single_cat_title( '', false );
    
            } elseif ( is_tag() ) {
    
                $title = single_tag_title( '', false );
    
            } elseif ( is_author() ) {
    
                $title = '<span class="vcard">' . get_the_author() . '</span>' ;
    
            }
    
        return $title;
    
    }

    This will remove the title texts in the archive pages.

    Hope this Helps,

    Best Regards !!

    #121992
    Jennifer Sims
    Participant

    Thanks for the information.

    After adding in the code to the child theme functions.php file do I need to select a documentation?

    Also how does it save?

    I have no safe or update button and when I move away from the window the code is lost.

    #122004
    Jennifer Sims
    Participant

    All fixed.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove or change the word 'Category:' in post archive’ is closed to new replies.