How to Hide Custom Fields Widgets

This topic contains 16 replies, has 3 voices, and was last updated by  Guust 10 years, 5 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #5374

    directory
    Expired Member
    Post count: 1502

    Re: GD Popular Post View Widget

    I am displaying custom fields on listing pages (list view) such as special offers, areas we serve, business hours, etc.

    How can I hide it in grid view? It doesn’t look good on sidebar widgets. Showing the custom fields in sidebar grid view makes the listings vertically stretches the listings too much.

    #5375

    directory
    Expired Member
    Post count: 1502
    This reply has been marked as private.
    #5380

    Vikas
    Full Member
    Post count: 1128

    Hi,

    Site does not load for me.
    My IP is 122.161.253.148

    #5395

    Guust
    Moderator
    Post count: 29970
    #5397

    directory
    Expired Member
    Post count: 1502

    Thank you, Guust. I am talking about the custom fields (Areas We Serve, Special Offer, etc.) showing up on the sidebar (grid view). They look good on content areas (list view) but not on the sidebar grid view. I wish I can display it on content areas list view and hide it in sidebar grid view.

    Please look at my home page and you’ll see what I mean. They eat up too much space on sidebars whether it’s grid or list view.

    #5399

    Guust
    Moderator
    Post count: 29970

    Mmmm, that might not be possible for the moment, over to Vikas.

    #5422

    Vikas
    Full Member
    Post count: 1128

    Not sure why ur site is not loading for me.
    Will u plz ask ur host if possible ?

    #5429

    Vikas
    Full Member
    Post count: 1128

    Hi Manilaboy,
    Here i have a solution for u to achieve what u want.
    Plz go to back end , geodirectory > Place(Custom post) setting > Custom fields tab and then expand Special offer field by clicking on that row, scroll down and see the section to enter custom css for this field (see attached image). Enter a unique name for this custom fields, e.g. geodir_(custom_post_type)_fieldname, so if u have special offer field for places post type then class name can be ‘geodir_place_special_offer’, put this name in css class[text field] and save this setting.
    Now plz add below code in your design > scripts > custom css section to hide that field.

    .geodir-sidebar-wrap .geodir_place_special_offer{display:none;}

    You can do this with other custom fields too in other post types.

    Please let me know if it works for you, i am always here to assist u further.

    Thanks

    #5456

    directory
    Expired Member
    Post count: 1502

    Thank you so much, Vikas! It worked beautifully!

    #5459

    directory
    Expired Member
    Post count: 1502
    This reply has been marked as private.
    #5472

    directory
    Expired Member
    Post count: 1502

    Hi Vikas,

    What error are you seeing when you go to my site? My host says your IP is not blocked so we don’t know why you can’t access my site.

    #5520

    Guust
    Moderator
    Post count: 29970

    Have a go at this:

    .geodir-sidebar-wrap #geodir_popular_post_view .geodir_place_special_offer {display:none;}

    PS: I could not get to your site either yesterday, it just could not find the server.

    #5539

    directory
    Expired Member
    Post count: 1502
    This reply has been marked as private.
    #5543

    Guust
    Moderator
    Post count: 29970

    Can you give me two links showing what is in the detail sidebar, and one where it shows in grid view (sidebar) on a listings page.

    #5561

    directory
    Expired Member
    Post count: 1502
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 17 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