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 | |
// 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 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 | |
// Show non sale product price in cart | |
add_filter( 'woocommerce_cart_item_price', 'wsm_show_nonsale_price', 10, 2 ); | |
function wsm_show_nonsale_price( $newprice, $product ) { | |
$_product = $product['data']; | |
$saleprice = $_product->sale_price; | |
if ( $saleprice > 0 ) { | |
$newprice = ''; |
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 | |
// 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 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
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 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 | |
// Enable WordPress Link Manager | |
add_filter( 'pre_option_link_manager_enabled', '__return_true' ); |
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 | |
/* | |
* | |
* Template Name: Rotator 2 | |
* | |
*/ | |
add_action( 'genesis_after_header', 'wsm_add_rotator2' ); | |
function wsm_add_rotator2() { |
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 | |
// Display full content only for specified categories | |
add_action( 'genesis_before_loop', 'wsm_full_content_category_archive' ); | |
/* | |
* Replace your-category with the slug for your category. | |
* If you wish to display full post content on multiple categories then | |
* separate the slugs with commas like this: | |
* 'your-category', 'your-other-category' |
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 | |
/* | |
* | |
* Template Name: IDX Broker | |
* | |
* This template is for displaying the IDX info from | |
* IDXBroker.com in your Genesis child theme. | |
*/ | |
add_action( 'genesis_before_content', 'wsm_idx_open_tag' ); |
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
iframe, | |
object, | |
embed { | |
max-width: 100%; | |
} |