Skip to:
Content
Pages
Categories
Search
Top
Bottom

Archives:Forums


  • davidleuba
    Participant

    @davidleuba

    I am new at this, please forgive me. I have installed bbPress into a WordPress site https://mississippihunter.com/forums/ . I am using the Astra theme.

    How do I get rid of the word “Archives?”

    I sincerely appreciate any help. Thanks, in advance.

    d

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    Try this

    add_filter( 'get_the_archive_title', 'to_archive_title_remove_prefix' );
    function to_archive_title_remove_prefix( $title ) {
    if ( is_post_type_archive() ) {
    $title = post_type_archive_title( '', false );
    }
    return $title;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar