Address

This topic contains 6 replies, has 4 voices, and was last updated by  Paolo 8 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #230429

    mld1000
    Expired Member
    Post count: 62

    i know you can turn off location on post types, but is there a way to turn off only the street address and leave the city, state and postal code?

    #230522

    Kor
    Moderator
    Post count: 16516

    Hi mld1000,

    You can always deactivate the fields by navigating to GD > Place Settings > Custom Fields > Field:Address > Switch “Is Active” to off. Let us know if it’s what you’re looking for.

    Thanks!

    #230806

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    actually the address field cannot be made inactive. Either you disable the physical location entirely (with the CPT add-on that is possible) or the address fields are all mandatory. However you can write whatever you want in it, the city name again or even just a X. Than you can set the pin on the map by dragging it.

    I’ll make sure we’ll remove that option from the address field.

    Thanks

    #231617

    mld1000
    Expired Member
    Post count: 62

    Paolo,

    I have classified ads and while I think most could live with a pin on a map, the actual textual display of their address, as when you click on a pin, will be disconcerting to some. My workaround at this point is having them use the address of the local post office for their postal code. That keeps them in the general area/neighborhood while accurately reflecting their city, state and country.

    Is there a solution for opting in or out of the textual display of the street address?

    Thanks,

    Mike

    #231657

    Kiran
    Moderator
    Post count: 7069

    Hi Mike,

    Without custom code it can’t turn off the street address field and leave the fields city, state and postal code enabled. But you can hide the street address field for users using custom css.

    
    
    
    #propertyform #geodir_post_address_row {
        display: none !important;
    }
    

    Please add this custom css in Admin -> Geodirectory -> Design -> Scripts -> Custom style css code.

    Thanks,
    Kiran

    #232101

    mld1000
    Expired Member
    Post count: 62

    Kiran,

    I’m not sure what adding the code above is supposed to do, but it did not hide the street address in the pop up when clicking on the map pin.

    Additionally, there are only certain post types on which I want to hide this and others I want it to be seen (i.e. events, places, etc.)

    Thanks,

    Mike

    #232413

    Paolo
    Site Admin
    Post count: 31211

    In the home map that will not be possible. Either you hide them all or none. In specific custom post type pages that will be possible.

    If you provide a link and admin credentials we will try to point you in the right direction.

    Remember though that this is considered a customization that goes beyond support.

    Thanks

Viewing 7 posts - 1 through 7 (of 7 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