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
/** Auto click Next Page in Multi-Page Caldera Forms */ | |
jQuery( document ).ready( function( $ ) { | |
//find highest page | |
var highest_page = 1; | |
//IMPORTANT: Change form ID to match your form | |
$( '.CF5c51040f84172 .caldera-form-page' ).each( function () { | |
highest_page = $(this).data('formpage'); | |
}); | |
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
add_filter( 'woocommerce_checkout_fields' , 'kl_edit_checkout_fields' ); | |
function kl_edit_checkout_fields( $fields ) { | |
$fields['billing']['billing_state']['placeholder'] = 'Select State at Billing'; | |
$fields['shipping']['shipping_state']['placeholder'] = 'Select State at Shipping'; | |
return $fields; | |
} |
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
/* Menu item hover and current color */ | |
.main-nav li a:hover { | |
color: red; | |
} | |
.main-nav .current-menu-item a { | |
color: red; | |
} | |
/* Footer title border color */ | |
.footer-widget-title { |
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
/* HIDE with CSS */ | |
/* Insert into Appearance > Customize > Additional CSS */ | |
.site-info a { | |
display: none; | |
} | |
/* REMOVE with Action */ | |
/* Insert into Appearance > Editor > fuctions.php or use Code Snippets Plugin */ | |
remove_action(storefront_footer, storefront_credit,20); | |
/* CUSTOMIZE */ |
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
/* Hide Search Bar in WooCommerce StoreFront */ | |
/* Insert these codes into Appearance > Customize > Additional CSS */ | |
/* Entire Site */ | |
.site-header .site-search { | |
display: none; | |
} | |
/* Product Page */ | |
.site-header .site-search { | |
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
// From Businessbloomer.com | |
// 1. Show Buttons | |
add_action( 'woocommerce_before_add_to_cart_quantity', 'bbloomer_display_quantity_plus' ); | |
function bbloomer_display_quantity_plus() { | |
echo '<button type="button" class="plus" >+</button>'; | |
} | |
add_action( 'woocommerce_after_add_to_cart_quantity', 'bbloomer_display_quantity_minus' ); |
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
add_action( 'add_meta_boxes_product', 'bbloomer_remove_metaboxes_edit_product', 9999 ); | |
function bbloomer_remove_metaboxes_edit_product() { | |
// e.g. remove short description | |
remove_meta_box( 'postexcerpt', 'product', 'normal' ); | |
} |
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
/** | |
From BusinessBloomer.com | |
*/ | |
add_action( 'woocommerce_before_cart', 'bbloomer_free_shipping_cart_notice_zones' ); | |
function bbloomer_free_shipping_cart_notice_zones() { | |
global $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
add_action( 'woocommerce_single_product_summary', 'bbloomer_product_sold_count', 11 ); | |
function bbloomer_product_sold_count() { | |
global $product; | |
$units_sold = get_post_meta( $product->get_id(), 'total_sales', true ); | |
if ( $units_sold ) echo '<p>' . sprintf( __( 'Products Sold: %s', 'woocommerce' ), $units_sold ) . '</p>'; | |
} |
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
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); |