How to Show Checkbox Custom Fields even if they are not Selected

This topic contains 5 replies, has 2 voices, and was last updated by  Alex Rollin 5 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #437825

    ian bran
    Expired Member
    Post count: 122

    Hello Support,

    I would like to output all custom fields on the details page and highlight the ones available.

    I’ve seen this in other websites and realized it’s UX value as it gives users important info and a consistent page format.

    Example:
    Room amenities:
    – A/C (Highlighted in red)
    – WIFI (Highlighted in red)
    – Jacuzzi (in grey)

    Is there a way to accomplish this? (A plus would be to show not-available fields after the available ones)

    Thank you very much

    #437865

    Alex Rollin
    Moderator
    Post count: 27815

    You will definitely need to add custom CSS to accomplish that.
    This page explains how to create and add custom CSS.
    https://wpgeodirectory.com/docs/customizing-your-style/

    #437987

    ian bran
    Expired Member
    Post count: 122

    Hi Alex,

    My site is heavily customized with css. I don’t think it’s just a matter of css, but it would be awesome if it was!

    The value of the fields not shown doesn’t seem to be hidden or display:none, the html is just not there (As far as I can tell)

    Thank you

    #437993

    Alex Rollin
    Moderator
    Post count: 27815

    Ah, I see what you are saying, sorry I misunderstood.

    Well, no, there needs to be a value there to ‘do something’ with it, for sure.

    So, two ways I can think of:

    1. Make the field a multiselect instead and have No AC and AC as options next to each other.
    2. Setup a new customization for a new predefined field that outputs what you need. Find examples for that here: https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-admin/dummy-data/property_sale.php

    #438008

    ian bran
    Expired Member
    Post count: 122

    Thank you Alex,

    That might work, I’ll take a shot at it.

    It would be an awesome feature for V2 to have the possibility to show non checked fields, please take a look at screenshot to understand my point that is valuable info for the user, especially when there are many options and your are comparing different listings.

    kind regards

    #438019

    Alex Rollin
    Moderator
    Post count: 27815

    I do think it is an interesting idea, but the first time I Have heard it.

    Be sure to add a feature request here: https://wpgeodirectory.com/requests/

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