This file contains hidden or 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 | |
/** | |
* Page template file to display an archive list of only pages | |
* | |
*/ | |
//* Template Name: Archive Pages Only | |
//* Remove standard post content output | |
remove_action( 'genesis_post_content', 'genesis_do_post_content' ); |
This file contains hidden or 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 phpinfo(); ?> |
This file contains hidden or 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 | |
// Do not copy opening PHP tag above | |
// Add titles to custom taxonomy archive pages | |
add_action( 'genesis_before_loop', 'wsm_add_taxonomy_title' ); | |
function wsm_add_taxonomy_title() { | |
if( is_tax() ) { | |
global $wp_query; | |
$term = $wp_query->get_queried_object(); | |
$tax = $term->taxonomy; |
This file contains hidden or 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 | |
// Do not copy opening PHP tag above | |
// Force content archves ti display full post content with no featured image | |
add_action( 'genesis_before_loop', 'wsm_full_content_categories' ); | |
function wsm_full_content_categories() { | |
if ( is_category() ) { | |
add_filter( 'genesis_pre_get_option_content_archive_thumbnail', 'wsm_no_post_image' ); | |
add_filter( 'genesis_pre_get_option_content_archive', 'wsm_do_full_content' ); | |
add_filter( 'genesis_pre_get_option_content_archive_limit', 'wsm_no_content_limit' ); |
This file contains hidden or 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 | |
// Don't copy opening PHP tag above | |
// Define child theme version | |
define( 'CHILD_THEME_VERSION', wp_get_theme()->get( 'Version' ) ); |
This file contains hidden or 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 | |
// Do not copy opening PHP tag above | |
// Remove comments from specific categories. Change out categories in array as needed. | |
add_action( 'wp_enqueue_scripts', 'wsm_remove_comments_in_category' ); | |
function wsm_remove_comments_in_category() { | |
if ( in_category( array( 'No Comments', 'Uncategorized', ) ) ) { | |
remove_action( 'genesis_after_post', 'genesis_get_comments_template' ); | |
remove_action( 'genesis_after_entry', 'genesis_get_comments_template' ); | |
remove_action( 'genesis_comment_form', 'genesis_do_comment_form' ); |
This file contains hidden or 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 | |
// Do not copy opening PHP tag above | |
// Events Calendar - remove recurring event info | |
add_filter( 'tribe_events_recurrence_tooltip', 'wsm_remove_tec_recurring_info' ); | |
function wsm_remove_tec_recurring_info( $tooltip ) { | |
if( !is_singular() ) | |
$tooltip = ''; | |
return $tooltip; | |
} |
This file contains hidden or 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 | |
// Do not copy opening PHP tag above | |
// Force full width home page layout | |
add_filter( 'genesis_pre_get_option_site_layout', 'wsm_full_width_home_page' ); | |
function wsm_full_width_home_page( $opt ) { | |
if ( is_front_page() ) { | |
$opt = 'full-width-content'; | |
return $opt; | |
} |