Add text before Country on the listing block

Hi everybody,
I want to add the text: “Provider´s Country:” before the country on the listing block:

I tried:


add_filter(
	'hivepress/v1/models/listing/fields',
	function( $fields, $model ) {
		if ( isset( $fields['location'] ) ) {
			$fields['location']['display_template'] = '<i class="hp-icon fas fa-user"></i> %value% / custom text here';
		}

		return $fields;
	},
	1000,
	2
);

but didnt work.

Please try to override the file /plugins/hivepress-geolocation/templates/listing/view/listing-location.php with the child theme

Here is the tutorial on how to customize templates https://youtu.be/LkojYp-8uwY

Tes thats exactly what I did. Thank you

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