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 | |
/* | |
* | |
* Template Name: Rotator 2 | |
* | |
*/ | |
add_action( 'genesis_after_header', 'wsm_add_rotator2' ); | |
function wsm_add_rotator2() { |
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 | |
// Do not copy opening PHP tag | |
// Enable WordPress Link Manager | |
add_filter( 'pre_option_link_manager_enabled', '__return_true' ); |
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
div.woocommerce form.woocommerce-ordering select, | |
body.woocommerce-page form.woocommerce-ordering select { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
background: url(images/arrow-down.png) no-repeat right center #fff; | |
height: 36px; | |
line-height: 1; | |
padding-right: 20px; | |
text-indent: 0.01px; |
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 | |
// Do not copy opening PHP tag | |
// Display Category Title | |
remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 ); | |
add_action( 'genesis_before_loop', 'genesis_do_custom_title_description', 15 ); | |
function genesis_do_custom_title_description() { | |
if ( is_category() || is_tag() || is_tax() ) { | |
echo '<div class="archive-description taxonomy-description"> <h1>' . get_queried_object()->name . '</h1></div>'; | |
} |
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 | |
// Do not copy opening PHP tag | |
// Add Read More button to blog page and archives | |
add_filter( 'get_the_content_more_link', 'wsm_add_excerpt_more' ); | |
add_filter( 'the_content_more_link', 'wsm_add_excerpt_more' ); | |
function wsm_add_excerpt_more( $more ) { | |
return '<span class="more-link"><a href="' . get_permalink() . '" rel="nofollow">' . __( 'Read More', 'wsm' ) . '</a></span>'; | |
} | |
add_filter( 'the_excerpt', 'wsm_add_short_excerpt_more' ); |
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 | |
// 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; | |
} |
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 | |
// 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 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 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 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; |
OlderNewer