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
/* Target the Credit Card */ | |
#stripe-card-element { | |
background: #ffffff !important; | |
padding: 10px 5px !important; | |
margin: 5px 0px !important; | |
} | |
/* Target the Expiry Date */ | |
#stripe-exp-element { | |
background: #ffffff !important; |
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
span.price { | |
color: black; | |
background: none; | |
position: relative; | |
box-shadow: none; | |
} | |
span.price:after { | |
display: none; | |
} |
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 first removes it from `before_add_to_cart_button` and then adds it to `woocommerce_product_thumbnails` | |
remove_action( 'woocommerce_before_add_to_cart_button', array( $GLOBALS['Product_Addon_Display'], 'display' ), 10 ); | |
add_action( 'woocommerce_product_thumbnails', array($GLOBALS['Product_Addon_Display'], 'display'), 15); |
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 | |
add_action( 'storefront_before_content', 'marce_custom_slider_storefront' ); | |
function marce_custom_slider_storefront() { | |
if ( is_front_page() ) { | |
echo do_shortcode("[metaslider id=586]"); | |
} | |
else {} | |
} |
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 | |
add_action( 'storefront_content_top', 'marce_custom_slider_storefront' ); | |
function marce_custom_slider_storefront() { | |
if ( is_front_page() ) { | |
echo do_shortcode("[metaslider id=586]"); | |
} | |
else {} | |
} |
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
.site-header-cart .cart-contents:after, | |
.storefront-handheld-footer-bar ul li.cart > a:before { | |
content: "\f07a"; | |
} |
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
// Don't add this opening PHP tag unless your file doesn't already have one | |
<?php | |
// Remove woocommerce-smallscreen.css | |
function marce-remove-woocommerce-smallscreen-css( $enqueue_styles ) { | |
unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation | |
return $enqueue_styles; | |
} | |
add_filter( 'woocommerce_enqueue_styles', 'marce-remove-woocommerce-smallscreen-css' ); |
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
// Don't add this opening PHP tag unless your file doesn't already have one | |
<?php | |
// Define a new breakpoint for woocommerce-smallscreen.css | |
function marce_filter_woocommerce_style_smallscreen_breakpoint( $breakpoint ) { | |
$breakpoint = '200px'; | |
return $breakpoint; | |
}; | |
add_filter( 'woocommerce_style_smallscreen_breakpoint', 'marce_filter_woocommerce_style_smallscreen_breakpoint', 10, 1 ); |