Advertisement
eventsmanager

Genesis - Executive Pro - single-event.php example

Feb 19th, 2014
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. <?php
  2. /**
  3.  * This creates a template similar to that of a page in Genesis themes, notice the removal of hooks in Genesis
  4.  *
  5.  * @package Executive Pro
  6.  * @subpackage Customizations
  7.  */
  8.  
  9. //Standard generic hooks to remove
  10. remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
  11. remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
  12. remove_action( 'genesis_before_post_content', 'genesis_post_info' );
  13.  
  14. //Executive Pro Theme - specific hooks one could remove, comment out the ones you want to keep
  15.  
  16. //* Remove the breadcrumb navigation
  17. remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
  18.  
  19. //* Remove the post info function
  20. remove_action( 'genesis_entry_header', 'genesis_post_info', 5 );
  21.  
  22. //* Remove the author box on single posts
  23. remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
  24.  
  25. //* Remove the post meta function
  26. remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
  27.  
  28. genesis();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement