Change Map Pin Content

Hi there,

How can I change map pin pop-up content to include one of the listing attributes?

Thanks.

Hi,

Please clarify: do you want to change this pin Awesome Screenshot and add the value of the attribute listing there?

Yes, looking to show value there, either on a load or when the pin is clicked.

Here’s the example. How do I change what is shown on the pin?

Hi,

I see. Unfortunately, this version does not have this feature, but we plan to add it in future updates. For now, it will require advanced coding.

Thanks Andrii, I am developer by background, can you please point me in the right direction?

Hi,

I recommend using the hivepress/v1/templates/listing_map_block hook for this purpose. You can add a custom callback function, which will add custom blocks to this map bubble.

Please check an example here How to override map template You can also find more template-related code snippets here Search · user:hivepress hivepress/v1/templates · GitHub

Hope this helps

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