Skip to content

Instantly share code, notes, and snippets.

@srikat
Created December 17, 2013 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/7998307 to your computer and use it in GitHub Desktop.
Save srikat/7998307 to your computer and use it in GitHub Desktop.
Basic custom Page Template in Genesis
<?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