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
// WooCommerce Remove Required Checkout Fields | |
add_filter( 'woocommerce_checkout_fields' , 'custom_wc_checkout_fields_required' ); | |
function custom_wc_checkout_fields_required( $fields ) { | |
$fields['billing']['billing_phone']['required'] = false; | |
return $fields; | |
} |
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
add_filter( 'woocommerce_checkout_fields', 'custom_move_checkout_fields' ); | |
function custom_move_checkout_fields( $fields ) { | |
// Lets display the email first. You can move these around depending on your needs. | |
$billing_order = array( | |
"billing_email", | |
"billing_first_name", | |
"billing_last_name", | |
"billing_company", |
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
.storefront-product-categories{} | |
.storefront-recent-products{} | |
.storefront-featured-products{} | |
.storefront-popular-products{} | |
.storefront-on-sale-products{} | |
.storefront-best-selling-products{} |
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
.storefront-featured-products{ | |
background-image: url(http://www.storefront.atlantisthemes.com/wp-content/uploads/2017/08/Featured-pattern.png); | |
background-position: center center; | |
background-repeat: no-repeat; | |
background-size: cover; | |
-o-background-size: cover; | |
} |
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
.storefront-featured-products{ | |
background-color:#FFEB3B; | |
} |
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
.storefront-recent-products .section-title {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
storefront_product_categories_args | |
storefront_recent_products_args | |
storefront_featured_products_args | |
storefront_popular_products_args | |
storefront_on_sale_products_args | |
storefront_best_selling_products_args |
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
add_filter( 'storefront_featured_products_args', 'custom_storefront_product_featured_title'); | |
// Frontpage Featured Products Title | |
function custom_storefront_product_featured_title( $args ) { | |
$args['title'] = __( 'New Featured Products Title Here', 'storefront' ); | |
return $args; | |
} |
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
add_filter('storefront_featured_products_shortcode_args','custom_storefront_featured_product_per_page' ); | |
// Featured Featured Products per page | |
function custom_storefront_featured_product_per_page( $args ) { | |
$args['per_page'] = 10; | |
return $args; | |
} |
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
add_filter('storefront_featured_products_shortcode_args','custom_storefront_featured_product_per_row' ); | |
// Featured Featured Products column | |
function custom_storefront_featured_product_per_row( $args ) { | |
$args['columns'] = 2; | |
return $args; | |
} |