GeoDirectory SupportRemove Street Address from Add Listing page – GeoDirectory Support https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/feed Sun, 22 Feb 2026 12:31:27 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55078 <![CDATA[Remove Street Address from Add Listing page]]> https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55078 Tue, 29 Sep 2015 21:22:23 +0000 Dylan Hello,

We would like to remove the street address from the Add Listing page, so the user cannot change the address when editing the listing. I do not see an ‘admin only’ type of option for the street address (which of course includes the city, region, zip).

What is the best way to prevent the street address from appearing on the edit listing page, other than trying to hide it with CSS (an ugly proposition, since each of the sub-fields don’t all have a unique class or ID assigned to them)?

Thanks.

]]>
https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55207 <![CDATA[Reply To: Remove Street Address from Add Listing page]]> https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55207 Wed, 30 Sep 2015 15:34:03 +0000 Paolo Hi,

You can easily hide with css, however you’ll need a new body class on the edit listing page.


add_filter('body_class','edit_body_class');

function edit_body_class($classes = '') {

		if(isset($_GET['pid'])){$classes[] = 'edit-listing';
     
    }return $classes;
		}

Than the CSS:


.edit-listing #geodir_post_address_row {
    display: none;
}

Thanks

]]>
https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55354 <![CDATA[Reply To: Remove Street Address from Add Listing page]]> https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55354 Thu, 01 Oct 2015 13:14:08 +0000 Dylan Yes, I knew hiding with CSS was an option, and have done that.

Thanks for your help.

]]>
https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55409 <![CDATA[Reply To: Remove Street Address from Add Listing page]]> https://wpgeodirectory.com/support/topic/remove-street-address-from-add-listing-page/#post-55409 Thu, 01 Oct 2015 19:01:42 +0000 Paolo You are welcome 🙂

]]>