LWP
June 19, 2025, 10:32pm
1
@ihor
Is it possible to use a PHP snippet to change the address link text to static text? For example, instead of the address links showing the address or plus code, I would like all address links to simply show “Click here to open Google Map”.
Thanks in advance!
andrii
June 20, 2025, 11:12am
4
Hi,
Thanks for the details. Yes, it is possible, but it will require custom implementation. You can overwrite the template part hivepress-geolocation/templates/listing/view/listing-location.php at master · hivepress/hivepress-geolocation · GitHub using this doc How to override template parts - HivePress Help Center and there, instead of <?php echo esc_html( $listing->get_location() ); ?>
specify any text.
I hope it helps
LWP
June 20, 2025, 6:45pm
5
Thank you for your reply! Does that mean it is not possible to do it with a PHP snippet?
andrii
June 23, 2025, 9:22am
7
Hi,
Unfortunately, there is no simple snippet for this; it will require rewriting the template part through a child theme.