Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This creates a template similar to that of a page in Genesis themes, notice the removal of hooks in Genesis
- *
- * @package Executive Pro
- * @subpackage Customizations
- */
- //Standard generic hooks to remove
- remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
- remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
- remove_action( 'genesis_before_post_content', 'genesis_post_info' );
- //Executive Pro Theme - specific hooks one could remove, comment out the ones you want to keep
- //* Remove the breadcrumb navigation
- remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
- //* Remove the post info function
- remove_action( 'genesis_entry_header', 'genesis_post_info', 5 );
- //* Remove the author box on single posts
- remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
- //* Remove the post meta function
- remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
- genesis();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement