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
| // Remove this top line if your file already has one | |
| <?php | |
| // Stripe provides a filter for you to add custom Stripe Elements Styling | |
| // See full documentation from Stripe on what elements are available to be styled here: | |
| // https://stripe.com/docs/stripe-js/reference#element-options | |
| add_filter( 'wc_stripe_elements_styling', 'marce_add_stripe_elements_styles' ); | |
| function marce_add_stripe_elements_styles($array) { |
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
| /* 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 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
| span.price { | |
| color: black; | |
| background: none; | |
| position: relative; | |
| box-shadow: none; | |
| } | |
| span.price:after { | |
| display: none; | |
| } |
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 | |
| // 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 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 | |
| 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 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 | |
| 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 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
| .site-header-cart .cart-contents:after, | |
| .storefront-handheld-footer-bar ul li.cart > a:before { | |
| content: "\f07a"; | |
| } |
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
| // 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' ); |