Listing without address

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

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

Open Support Ticket
  • Author
    Posts
  • #465499

    Javier Vasquez
    Expired Member
    Post count: 100

    Hi,
    I want my listings shows country, regions, citys but not address or maps. How can I do that?

    #465508

    Guust
    Moderator
    Post count: 29970

    Remove the maps from all templates, and hide the address field with CSS.
    Thanks

    #465609

    Javier Vasquez
    Expired Member
    Post count: 100

    OK I have four kinds of listing. An I want that only one doesnt show address. What is the structure of the CSS?

    #465612

    Guust
    Moderator
    Post count: 29970

    For example this will hide the street address on archive pages for Places only:

    .post-type-archive-gd_place span[itemprop="streetAddress"] {display: none;}

    Have a look at https://wpgeodirectory.com/docs/common-styling-examples/#address and https://wpgeodirectory.com/docs/customizing-your-style/ to fine-tune.

    Thanks

    #466058

    Javier Vasquez
    Expired Member
    Post count: 100
    This reply has been marked as private.
    #466059

    Javier Vasquez
    Expired Member
    Post count: 100
    This reply has been marked as private.
    #466062

    Javier Vasquez
    Expired Member
    Post count: 100
    This reply has been marked as private.
    #466067

    Kor
    Moderator
    Post count: 16516

    Hi Javier,

    Thanks for your reply. Which CPT “Address” are you trying to hide? Could you remove the custom CSS code you’ve applied and share the URL of the CPT here so that I could share the correct custom CSS code?

    Thanks!

    #466074

    Javier Vasquez
    Expired Member
    Post count: 100
    This reply has been marked as private.
    #466080

    Alex Rollin
    Moderator
    Post count: 27815

    try

    
    
    
    .single-gd_docasion span[itemprop="streetAddress"] {
        display: none;
    }
    

    Repeat for each itemprop you want to hide:
    https://wpgeodirectory.com/docs/common-styling-examples/#address

    #466082

    Javier Vasquez
    Expired Member
    Post count: 100
    This reply has been marked as private.
    #466085

    Alex Rollin
    Moderator
    Post count: 27815

    Sorry, it works, there was a problem with the formatting of my post though.
    I added it to the customizer and it is fine.

    #466090

    Javier Vasquez
    Expired Member
    Post count: 100

    Thanks! I just saw it. Thanks!

    #466092

    Alex Rollin
    Moderator
    Post count: 27815

    You’re welcome 🙂

    #466099

    Javier Vasquez
    Expired Member
    Post count: 100
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)

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

Open Support Ticket