SpatialMatch Template Hooks

ridx_map_search_page_title

Page title filter allows to customize meta title rendered with the <TITLE> tag.

add_filter('ridx_map_search_page_title', 'Property Search')

hji_map_search_head

HTML Head action hook allows to render additional scripts or meta tags that should be included within the <HEAD> tag.

Usage

add_action('hji_map_search_head', 'your_function_name', 10);

Examples:

Add custom meta description
add_action('hji_map_search_head', 'addIDXMetaDescription', 10);
function addIDXMetaDescription() {
    echo '<meta name="description" content="Real estate property search for San Diego metro area.">';
}

Add Google Analytics or Google Tag Manager scripts

add_action('hji_map_search_head', 'addIDXGoogleAnalytics', 10);
function addIDXGoogleAnalytics() {
?>
	<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123456789-1"></script>
	<script>
	  window.dataLayer = window.dataLayer || [];
	  function gtag(){dataLayer.push(arguments);}
	  gtag('js', new Date());

	  gtag('config', 'UA-123456789-1');
	</script>
<?php	
}

hji_map_search_header

Header section action hook allows to render content within the header area of the page's layout.

Normally, we do not recommend rendering any content within the header/footer sections of the layout. Making changes to the layout will affect responsiveness and usability of the application. SpatialMatch IDX takes care of rendering desktop and mobile navigation, as well as footer copyrights and market disclaimers within constraints of the app's design with maximum attention to user experience and usability.

Usage

add_action('hji_map_search_header', 'your_function_name', 10);

Example:

Render custom header banner
add_action('hji_map_search_header', 'renderCustomBanner', 10); 
function renderCustomBanner() {     
	?>
	<div 		
		style="padding: 1em; 
				text-align: center; 
				background-color: red; 
				font-color: white; 
				font-size: 2em;">		
		Hello World
	</div>
	<?php
}

hji_map_search_footer

Similar to the header, footer section action hook allows to render content within the footer area of the layout.

Usage

add_action('hji_map_search_footer', 'your_function_name', 10);

Still need help? Contact Us Contact Us