Last active
July 6, 2016 13:58
-
-
Save territutich/4f0011f3312d52a161c4e3c48cb84bbd to your computer and use it in GitHub Desktop.
Archive Template for Fellows Directory Original code from http://wpsites.net/web-design/basic-genesis-archive-page-template-for-custom-post-type/ Priority added for specificity.
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 | |
/** | |
* @author Terri Orlowski | |
* @example http://torlowski.me/ | |
* @copyright 2016 Terri Orlowski | |
*/ | |
//* Remove the post meta function | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta',6 ); | |
//* Remove the post info function | |
remove_action( 'genesis_entry_header', 'genesis_post_info',6 ); | |
// Move image below post title in Genesis Framework 2.0 | |
remove_action( 'genesis_entry_header', 'genesis_do_post_image', 5 ); | |
add_action( 'genesis_entry_content', 'genesis_do_post_image', 5 ); | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'add_dir_body_class' ); | |
function add_dir_body_class( $classes ) { | |
$classes[] = 'fellows-dir'; | |
return $classes; | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment