Change location field with custom one

Which template do I need to change the display address on single listings from the “Location” to a new text address attribute I have added?

I’ve noticed that I can get website maps to display the exact location if I use the One Plus Code of the business address from Google Maps in the Location field.

So, I want to use the One Plus Code in the Location field and a manual text address to display as the address at the top of the listings pages.

Can you point me in the right direction?

Hi,

Unfortunately, there are no simple guidelines for this, as you need to review the documentation of your service with which you need to integrate, but this is unfortunately beyond the scope of our support. If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work Experts | HivePress

But I don’t need guidance on the integration. I only need to know which file displays the address line. If I can find that file, I will easily be able to do what I need to do to make this work. Can you point me in the right direction?

Hi,

I see. You can overwrite this template part hivepress-geolocation/templates/listing/view/listing-location.php at master · hivepress/hivepress-geolocation · GitHub using a child theme and change everything there depending on your needs How to override template parts - HivePress Help Center

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.