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 | |
/** | |
* WooCommerce: Remove default breadcrumbs and add Yoast ones instead | |
* Add to theme functions.php file or Code Snippets plugin | |
*/ | |
remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0); | |
add_action( 'woocommerce_before_main_content','my_yoast_breadcrumb', 20, 0); | |
if (!function_exists('my_yoast_breadcrumb') ) { |
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 | |
// replace Footer Credits with a quote | |
function removeHighwindCredit() { | |
remove_action( 'highwind_footer', 'highwind_credit', 20 ); | |
add_action( 'highwind_footer', 'my_footer_content' ); | |
} | |
//add custom credits/text to the footer | |
function my_footer_content() { |
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 style="text-align: center; padding: .53em; color: #9A320D; font-weight: bold; font-size: 1.5em;"><span style="margin: 0 1em;">Gourmet marmalade & jam. Made in Santa Cruz.</span></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 | |
/** | |
* WooCommerce: Hide 'Coupon form' on checkout page if a coupon was already applied in the cart | |
* Add to theme functions.php file or Code Snippets plugin | |
*/ | |
add_filter( 'woocommerce_coupons_enabled', 'woocommerce_coupons_enabled_checkout' ); | |
function woocommerce_coupons_enabled_checkout( $coupons_enabled ) { |
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
@media screen and (min-width: 481px) { | |
.woocommerce-active .site-header .site-branding { | |
width: 20%; | |
} | |
} |
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
/** | |
Change add to cart button for variable product | |
*/ | |
add_filter('variable_add_to_cart_text', 'my_custom_cart_button_text'); | |
function my_custom_cart_button_text() { | |
return __('Select Product', 'woocommerce'); | |
} |
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
function hide_coupon_field_on_checkout( $enabled ) { | |
if ( is_checkout() ) { | |
$enabled = false; | |
} | |
return $enabled; | |
} | |
add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_checkout' ); |
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
function woo_related_products_limit() { | |
global $product; | |
$args['posts_per_page'] = 6; | |
return $args; | |
} | |
add_filter( 'woocommerce_output_related_products_args', 'jk_related_products_args' ); | |
function jk_related_products_args( $args ) { | |
$args['posts_per_page'] = 3; // 3 related products |
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
function hide_coupon_field_on_cart( $enabled ) { | |
if ( is_cart() ) { | |
$enabled = false; | |
} | |
return $enabled; | |
} | |
add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_cart' ); |
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
function sww_remove_wc_currency_symbols( $currency_symbol, $currency ) { | |
$currency_symbol = ''; | |
return $currency_symbol; | |
} | |
add_filter('woocommerce_currency_symbol', 'sww_remove_wc_currency_symbols', 10, 2); | |
/** Source: https://jilt.com/blog/pricing-remove-currency-symbol/ **/ |
OlderNewer