Created
December 17, 2013 01:18
-
-
Save srikat/7998307 to your computer and use it in GitHub Desktop.
Basic custom Page Template in Genesis
This file contains 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: My Custom Page | |
*/ | |
# Remove the entry content | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
# Add custom entry content | |
add_action( 'genesis_entry_content', 'rr_do_post_content' ); | |
/** | |
* Outputs custom post content | |
* | |
* @return void | |
*/ | |
function rr_do_post_content() { | |
// Put your custom content here | |
echo 'Hello Robin'; | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment