Skip to content

Instantly share code, notes, and snippets.

@ChrisCree
Created January 3, 2014 21:46
Show Gist options
  • Save ChrisCree/8247252 to your computer and use it in GitHub Desktop.
Save ChrisCree/8247252 to your computer and use it in GitHub Desktop.
Save this file as page_idx-template.php and upload it to your child theme. Then create a page via the Pages --> Add New menu in your WordPress dashboard and select the "IDX Broker" page template.
<?php
/*
*
* Template Name: IDX Broker
*
* This template is for displaying the IDX info from
* IDXBroker.com in your Genesis child theme.
*/
add_action( 'genesis_before_content', 'wsm_idx_open_tag' );
function wsm_idx_open_tag() {
echo '<div id="idxStart" style="display: none;"></div>';
}
add_action( 'genesis_after_content', 'wsm_idx_close_tag' );
function wsm_idx_close_tag() {
echo '<div id="idxStop" style="display: none;"></div>';
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment