Remove Items

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

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

Open Support Ticket
  • Author
    Posts
  • #45212

    grantbroadcasters
    Expired Member
    Post count: 1

    How do a remove the following items from the listings, see image from reference.

    1. The View Types
    2. The Reviews info (want to keeps reviews on site but want to remove them from display until more reviews are added.
    #45214

    Guust
    Moderator
    Post count: 29970

    Add this to your CSS:

    
    
    .geodir-list-view-select {display:none}
    .geodir_Star {display:none}
    .geodir_category_list_view li .geodir-addinfo a.geodir-pcomments {display:none}
    #45596

    grantbroadcasters
    Expired Member
    Post count: 1

    I would prefer to removed the code to that outputs them instead of using CSS to hide them. Is there any way to do this.

    #45641

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you should be able with these in your functions.php file:

    
    
    
    //remove the list/grid selector
    remove_action('geodir_before_listing', 'geodir_list_view_select', 100);
    // remove the review/rating part
    add_filter('geodir_is_reviews_show','my_remove_rating_listing_page',10,2);
    function my_remove_rating_listing_page($is_display,$view){
        if($view=='listview'){
            return false;
        }
    
        return $is_display;
    }
    
    

    Let us know how you went.

    Thanks

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

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

Open Support Ticket