Hey! My site is UK based, if a user searches for “London” the search box will change to London, UK. is there anyway to remove the UK on the end? I know it will require customisation but can anybody point me in the right direction? thanks.
Hi,
While we plan to release an option to customize the location text format (e.g. to exclude country), if it’s urgent you can try to use the hivepress/v1/models/listing/update_location
or hivepress/v1/forms/listing_update/errors
hook. The first one fires when the location text is saved so you can update it again, removing “, UK” at the end (please also use remove_action
to avoid the infinite update loop). The second one is a filter hook fired before the listing edit form is validated, so you can override the location field value before it’s saved.
Hope this helps
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.