How to disable longitude, map, region, neighborhood,

This topic contains 7 replies, has 3 voices, and was last updated by  Kor 4 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #535553

    Irina Davidov
    Expired Member
    Post count: 44

    Hi,
    i want to have adress without map, longitude, region, neighborhood, country. I disabled them in the custom fields, this works great in tabs. But in “add a listing” this fields are still there and they must be field out, this is very annoing.
    How can I disable map, longitude, region, neighborhood, country but keep street and city?

    #535569

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    Lat/Lon, Map, region, and country are all required fields. Would you like to hide those from the frontend view on your site?

    If you want to disable the location completely for a Custom Post Type you can do that in the CPT General settings:

    https://wpgeodirectory.com/docs-v2/places/general/

    But that will disable them completely. If your site has more than one city you will need to allow region and country.

    You can disable “Neighbourhood” in the Locations settings:

    https://wpgeodirectory.com/docs-v2/addons/location-manager/

    #535594

    Irina Davidov
    Expired Member
    Post count: 44

    I need street, zip and city, so I can not remove the location completely from CPT.
    I already made all this GD settings and this works on the frontend.
    But in Dashboard -> add new location -> all this: set pin on the map, longitude, latitude are stil there. The map is not there but the button “set location on the map” is stil there
    Css like
    .wp-admin #geodir_post_info #geodir_address_map_row {display:none!important}
    doesn´t work at all.

    How can I remove them from Dashboard ->add new location?

    #535642

    Alex Rollin
    Moderator
    Post count: 27815

    You will need to create your own CSS and add it as a code snippet or to your themes functions.php for managing admin/backend CSS; CSS added to the customizer is not loaded in the backend.

    https://wpgeodirectory.com/docs-v2/faq/customizing/
    https://css-tricks.com/snippets/wordpress/apply-custom-css-to-admin-area/

    Is there a reason you aren’t using the frontend add-listing form?

    #535792

    Irina Davidov
    Expired Member
    Post count: 44

    Is there a way to EDIT an existing location without being linked to the dashboard?

    #535796

    Kor
    Moderator
    Post count: 16516

    Hi Irina,

    Thanks for your reply. You can insert “GD > Author Actions” as explained here to allow editing https://wpgeodirectory.com/docs-v2/design/gd_author_actions/ .

    #535813

    Irina Davidov
    Expired Member
    Post count: 44

    That is a good idea, Thank you
    it is said the links can include also “Renew”, “Upgrade”.
    But hide_upgrade=”0″ and hide_renew=”0″ doesn´t work at all.

    [gd_author_actions hide_delete=”1″ hide_renew=”0″ hide_upgrade=”0″ author_page_only=”1″]

    #535889

    Kor
    Moderator
    Post count: 16516

    Hi Irina,

    Thanks for your post. As mentioned here https://wpgeodirectory.com/docs-v2/design/gd_author_actions/#upgrade , “The ‘Upgrade’ link only shows when the listing has a package that has the option ‘Has Upgrades’ checked.” and “The ‘Renew’ link only shows when the listing has the ‘Expired’ status. For a listing to be set to be Expired, the price package must be set to Downgrade to ‘Expired’.”

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