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 //remove this line | |
add_filter( 'genesis_term_intro_text_output', 'cd_do_archive_term_description' ); | |
/** | |
* Show archive description only on first page of a taxonomy archive. | |
* | |
* @return string | |
*/ | |
function cd_do_archive_term_description( $intro_text ) { | |
if ( is_paged() ) { |
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
/** | |
* bbPress specific CSS | |
* | |
* @package bbPress | |
* @subpackage Theme | |
*/ | |
/* =bbPress Style | |
-------------------------------------------------------------- */ |
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
/** | |
* bbPress specific CSS | |
* | |
* @package bbPress | |
* @subpackage Theme | |
*/ | |
/* =bbPress Style | |
-------------------------------------------------------------- */ |
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 // remove this line. | |
add_action( 'genesis_header', 'cd_site_image', 5 ); | |
/** | |
* Output image before site title. | |
* | |
* Checks to see if a header image exists. If so, output that in an `img` tag. If not, get | |
* the Gravatar associated with the site administrator's email (under Settings > General). | |
* | |
* @see get_header_image() Retrieve header image for custom header. |
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
<? | |
/** | |
* Team Archive template | |
*/ | |
// Remove default post title (with link) | |
remove_action( 'genesis_entry_header','genesis_do_post_title' ); | |
add_action( 'genesis_entry_header','cd_archive_title' ); | |
/** |
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 //remove this line | |
add_filter( 'genesis_post_info', 'cd_post_info_filter' ); | |
function cd_post_info_filter( $post_info ) { | |
if ( ! is_singular( 'post' ) ) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments]'; | |
$post_modified_info = '[post_modified_date before="<br />Last updated "]'; | |
return $post_info . $post_modified_info; |
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
/* | |
Note the .site-container class - this adds extra specification to areas | |
where the Style Customizer is applying styles. You can directly target | |
other styles that come directly from the theme (hint: you can identify them | |
because they don't include the .gppro-custom class) | |
------*/ | |
body.gppro-custom .site-container, | |
body.gppro-custom .site-container .genesis-grid .entry-meta, | |
body.gppro-custom .site-container .entry-header .entry-meta, | |
body.gppro-custom .site-container .site-footer p, |
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 // Remove this entire line | |
// Add custom class to the body tag | |
add_filter( 'body_class', 'add_body_class' ); | |
function add_body_class( $classes ) { | |
$classes[] = 'name-of-class'; | |
return $classes; | |
} |
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 | |
/** | |
* This file adds the Landing template to the Utility Theme. | |
* | |
* @author Carrie Dils | |
* @package Utility | |
* @subpackage Customizations | |
*/ | |
/* |
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 //remove this entire line | |
// Remove Pagination from a custom post type | |
add_action( 'parse_query', 'cd_nopaging' ); | |
function cd_nopaging( $query ) { | |
if ( is_post_type_archive( 'your-cpt' ) ) { | |
$query->set( 'nopaging', 1 ); | |
} |