SpatialMatch Template Hooks


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

add_filter('ridx_map_search_page_title', 'Property Search')


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


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


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=""></script>
	  window.dataLayer = window.dataLayer || [];
	  function gtag(){dataLayer.push(arguments);}
	  gtag('js', new Date());

	  gtag('config', 'UA-123456789-1');


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.


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


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


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


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

Still need help? Contact Us Contact Us