Skip to:
Content
Pages
Categories
Search
Top
Bottom

“forum archive” remove title

  • @vetrehberi

    Participant

    Hi

    I did a search but the answer was not enough so I opened the topic.

    I want to remove home page forum archive post. Can you help me?

    I added the url of the image to make it more understandable.

    hizliresim.com/adkvt1j

Viewing 7 replies - 1 through 7 (of 7 total)
  • @robin-w

    Moderator

    This is theme specific – we would need a link to a live example on your site please

    @vetrehberi

    Participant

    thank you

    wilsonrobine@btinternet.com

    I sent an e-mail

    @robin-w

    Moderator

    try this

    add_filter( 'get_the_archive_title', function ($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;
    });

    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

    @vetrehberi

    Participant

    unfortunately it didn’t happen

    Is there a different method?

    @robin-w

    Moderator

    as I say it is theme specific, and if the above did not work, then it is beyond free help – sorry

    @vetrehberi

    Participant

    thanks you

    @vetrehberi

    Participant

    hi

    i solved the problem

    if you have a problem i will help you

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