Add Products To Cart Archive

Here is how you can add WooCommerce add to cart button and quantity field/form to Shop archive page. You may have just a bunch of linked products on the shop page but want to add a quicker way for a customer to add products to cart.   Depending on your WordPress theme the add to…

Read More
Wordpress Lost Password

When you have WooCommerce installed, it hijacks the lost password URL with /my-account/lost-password/ you can revert to the original WordPress lost password URL by removing a filter to your themes functions.php file /** * Remove WooCommerce /my-account/lost-password so default WordPress one can be used */ remove_filter( ‘lostpassword_url’, ‘wc_lostpassword_url’, 10 ); Now the default lost password…

Read More
Change Default From Email Address

WordPress sends a few emails out from a website including password reset emails that have a from email address wordpress@yoursite.com they also have a from name of WordPress. Two WordPress filters can change these values wp_mail_from and wp_mail_from_name – add the below code in your child themes functions.php and change the appropriate values. add_filter(‘wp_mail_from’, ‘prefix_email_from’);…

Read More
Bootstrap Off Canvas Content

Utilising a Bootstrap 4 WordPress theme – below code snippets to toggle off-canvas content. For multiple panels of content the trigger button data attribute – data-trigger needs a unique value that matches its content panel in the case below it is the article element which has the matching id value. HTML <b class=”screen-overlay”></b> <button data-trigger=”#card_mobile”…

Read More
Woocommerce Return To Store Button

WooCommerce version 2.6 has brought out a new text filter that lets you change the text of ‘Return To Store’ on the button that appears on the cart page when the cart is empty. The filter is called woocommerce_return_to_shop_text and this is how you can use it. add_filter(‘woocommerce_return_to_shop_text’, ‘prefix_store_button’); /** * Change ‘Return to Shop’…

Read More
Woocommerce Featured Product Loop

Here is a guide on how to create a WooCommerce featured products loop of featured images. The featured product option is chosen from the star column in the WordPress dashboard backend of the WooCommerce products, ‘featured‘ it is a term that belongs to the taxonomy named ‘product_visibility‘.     View the code on Gist. So…

Read More
Bootstrap Collapse Beaver Builder

If you have the Beaver Theme here is how you can add Bootstraps Collapse effect to a Beaver Builder row or module can be achieved using the Bootstrap data-toggle attribute. Let’s say you have a button which when clicked reveals a module below it and another click hides the module again. As below… Example Pellentesque…

Read More