SHOW INFORMATION BY CONDITIONALS

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

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

Open Support Ticket
  • Author
    Posts
  • #530190

    Osvaldo De Jesus
    Full Member
    Post count: 21

    Hello! I want to know how can i use conditionals to show some information for listings that are using the custom field FEATURED so if the listing do not has the custom field CHECKED i want to know other information.

    That’s possible?

    #530194

    Alex Rollin
    Moderator
    Post count: 27815

    If a listing is feature there should be a body class, so, you can use that with CSS to hide or show items:

    .geodir-featured

    First you hide the item, then show it when the class is present:

    
    
    
    .geodir_contact {display: none}
    .geodir-featured .geodir_contact {display: initial}
    

    From there you will need your own custom CSS.

    https://wpgeodirectory.com/docs/customizing-your-style/

    #530210

    Osvaldo De Jesus
    Full Member
    Post count: 21

    Thanks you!

    #530220

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
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