Created
January 3, 2014 21:46
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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