Popular Categories

This topic contains 4 replies, has 3 voices, and was last updated by  Alphonso 7 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #400880

    mordechai hommel
    Expired Member
    Post count: 7

    on the supreme theme how can I take away the Popular Categories under the search panel

    #400887

    Kor
    Moderator
    Post count: 16516

    Hi there,

    Insert the custom CSS code below into GD > Design > Scripts > Custom Style CSS to remove it.

    
    
    .sd.home .featured-area .geodir-category-list-in, 
    .sd.sd-location .featured-area .geodir-category-list-in {
        display:none!important;
    }

    Or refer this https://wpgeodirectory.com/docs/faqs/how-do-i-remove-the-popular-categories-section-from-the-home-page/

    #401256

    Alphonso
    Buyer
    Post count: 297

    Hi Kor,
    How do I remove ONLY the Description line ‘Popular Categories’?
    I want to keep the Popular Categories Icons as there are on the Homepage.
    Please advise. Thanks!

    #401290

    Kor
    Moderator
    Post count: 16516

    Hi Alphonso,

    Insert this custom PHP code into “Code Snippet” plugin or your theme’s functions.php file

    
    
    function _gd_custom_popular_post_category_atts( $out, $pairs, $atts, $shortcode ) {
        if ( (geodir_is_page('home') || geodir_is_page('location') ) && empty( $out['before_title'] ) && empty( $out['after_title'] ) ) {
            $out['before_title'] = '<div class="gd-custom-' . $shortcode . '">';
            $out['after_title'] = '</div>';
        }        
        return $out;
    }
    add_filter( 'shortcode_atts_popular_post_category', '_gd_custom_popular_post_category_atts', 10, 4 );

    Then insert the custom CSS code below into GD > Design > Scripts > Custom Style CSS

    
    
    .gd-custom-popular_post_category {
        display:none!important;
    }
    

    Thanks!

    #401433

    Alphonso
    Buyer
    Post count: 297

    Thanks again Kor! This worked perfectly!

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount