Hide Description in Grid but Display in List View?

This topic contains 5 replies, has 2 voices, and was last updated by  Greg Barr 5 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #460282

    Greg Barr
    Full Member
    Post count: 182

    I’ve used CSS to not display descriptions in grid view because I think it makes the page too busy.

    In list view, however, I’d like to display them, because there’s a big empty space next to the featured image anyway.

    Is it possible to do that? There seem to be CSS identifiers for list view and grid view (.geodir-category-list-view and .geodir-gridview) but I haven’t been able to do what I want with them.

    Thanks.

    #460287

    Kor
    Moderator
    Post count: 16516

    Hi Greg,

    Are you referring to the listings on your homepage? Also, share WP admin access here i private reply.

    Thanks!

    #460289

    Greg Barr
    Full Member
    Post count: 182

    No. On my home page I do not offer ability to view in different display modes.
    I’m talking about my Clubs and Events main pages, and search results, where users can view in either grid or list.
    https://corncendev.wpengine.com/clubs
    https://corncendev.wpengine.com/clubs/category/mid-atlantic-1
    https://corncendev.wpengine.com/events

    #460290

    Greg Barr
    Full Member
    Post count: 182
    This reply has been marked as private.
    #460306

    Kor
    Moderator
    Post count: 16516

    Hi Greg,

    Thanks for your reply. I’ve changed the existing custom CSS code to the below and could you check and see if it’s what you’re looking for?

    
    
    body ul.geodir-category-list-view.geodir-gridview li .gd-list-item-right .geodir-field-post_content p {
        display:none;
    }
    #460309

    Greg Barr
    Full Member
    Post count: 182

    That’s PERFECT! Thanks so much!

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount