Any way to turn off Category counts?

This topic contains 5 replies, has 3 voices, and was last updated by  Paolo 6 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #390550

    ktz16
    Expired Member
    Post count: 13

    I cannot find a way to turn off the category count that displays after the category name. How do I do turn it off?

    #390590

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    yes there is not an option to do so, but it can be done via CSS.

    Add this in GeoDirectory > Design > Scripts > Custom CSS:

    
    
    .geodir_term_class.geodir_link_span {
        display: none;
    }

    Thanks

    #390614

    ktz16
    Expired Member
    Post count: 13

    That worked! Thanks!

    #394812

    ktz16
    Expired Member
    Post count: 13

    Actually, this is not working. I just noticed that Google is including the count in the anchor text. I really need the count to not appear at all in the anchor text. “display: none;” does not cut it. Any other ideas?

    #394899

    Giri
    Expired Member
    Post count: 3155

    Hi, If you are satisfied with the css hack, then the only way to remove it is by editing the original source file.

    If thats the way you want to go,

    This is the file

    /wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php

    Function: geodir_helper_cat_list_output

    Line number: 3033

    Replace this line

    echo $cat->name . '</span> <span class="geodir_term_class geodir_link_span geodir_category_class_' . $post_type . '_' . $cat->term_id . '">(' . $total_post . ')</span> ';

    With

    echo $cat->name . '</span> ';
    #394917

    Paolo
    Site Admin
    Post count: 31206

    beware that you’ll have to re apply this hack after every update…

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket