WooCommerce Tips

Replace WooCommerce category images with plain text.

Sometimes it's a pain to make images for all your WooCommerce product categories. Otherwise, you get the ugly default image. For example, see the image below where each category displays text only with a blue background.Add the CSS below to hide the category image and style how you want the category names appear.[css] li.product-category a { padding-top:15px; padding-bottom:15px; }...

read more

Make the default Divi search box search WooCommerce products only

If you have a Divi/WooCommerce site and you don't have any posts, this is perfect for you. The default Divi search will now search only your products. You can add this to the Divi theme options Integration tab in the head. Or add to a Code module in your global header. This also changes the placeholder text from "Search" to "Search Products". For example when you click on the search icon like...

read more

Enlarge product image on rollover for Divi Shop module

Add the following CSS code to the Divi theme options area or your child theme style.css file. [css] /* enlarge shop module product images on rollover BEGIN */ .et_shop_image img {transition: transform .2s;} .et_shop_image img:hover {transform: scale(1.25);} /* enlarge shop module product images on rollover END */ [/css]

read more

Change the default U.S. state in the dropdown on WooCommerce checkout page

Add the following PHP code to your child theme functions.php file. [php] //default checkout US state dropdown blank instead of the default site state making taxes sometimes show up add_filter( 'default_checkout_billing_state', 'change_default_checkout_state' ); add_filter( 'default_checkout_shipping_state', 'change_default_checkout_state' ); function change_default_checkout_state() { return '';...

read more

How to Change In Stock text in WooCommerce

Add the following PHP code to your child theme functions.php file. [php] /* Change In Stock text in WooCommerce */ add_filter( 'woocommerce_get_availability', 'wcs_custom_get_availability', 1, 2); function wcs_custom_get_availability( $availability, $_product ) { // Change In Stock Text if ( $_product->is_in_stock() ) { $availability['availability'] = __('Available!', 'woocommerce');...

read more

More Tips

Ask a Question

"*" indicates required fields