help on custom field exampels

This topic contains 3 replies, has 2 voices, and was last updated by  Guust 7 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #379284

    peterho2004
    Expired Member
    Post count: 48

    hi Sir,

    I read through the custom field examples which are great for making for some nice looking labels.
    https://wpgeodirectory.com/docs/custom-field-examples/

    If I have a field of true or false. Is there a way in CSS to display a text that is specified in the CSS code? For example, if I have a field called “Expensive” and if it is true, I want CSS to display “Pricey”

    thanks,

    Peter

    #379288

    Guust
    Moderator
    Post count: 29970

    That is exactly how the car parking example works.
    The CSS is like this

    
    
    .geodir_parking:before {
    content: "pricey"; 
    }
    #379374

    peterho2004
    Expired Member
    Post count: 48

    thanks

    #379415

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

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