• Resolved chinouk35

    (@chinouk35)


    Hello, I have a problem on the category display page. The description of the category is displayed twice (once in title, once in category) but I don’t see where to modify the title? Thank you for your help

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    can you send me a link to one of the pages with this problem, so i can see how it looks like on-site?

    Thread Starter chinouk35

    (@chinouk35)

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    thanks, i am not exactly sure where the first term description render comes from (as it seems to show in a place where the title should be), but the second one is coming from WPAdverts, you can hide it by adding the code below in your theme functions.php file

    add_filter( "adverts_tax_term_description", "__return_empty_string" );
    Thread Starter chinouk35

    (@chinouk35)

    thx so so much !

    the first text comes from the WP category description. So it’s annoying because I don’t have a title for this page ?? I don’t know if it comes from my theme (Astra) but I have another problem: I cannot deactivate the avatar icon in the ads (even deactivated it appears)

    • This reply was modified 2 months ago by chinouk35.
    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    you should be able to get the title to show on the advert category pages by adding the below code in the theme functions.php file

    add_filter( "astra_the_title", function( $title ) {
    if( is_tax( 'advert_category' ) ) {
    return esc_html( get_queried_object()->name );
    } else {
    return $title;
    }
    }, 10000 );
    Thread Starter chinouk35

    (@chinouk35)

    thx so so much !!

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