Divi Tips
Divi Tips
Make Divi footer stick to bottom on short pages
If you want make the footer display at the very bottom for short content pages, you can use the code below. Paste this in the Divi Options/Ingergration area in the header section. [php] <script> jQuery(function($){ function stickyFooter(){...
Change Logo on Mobile – Divi Theme
If you want to add a different logo to your header for different screen resolutions, you can use the code below. Change the URLs to point to your images. You can also adjust the width value to whatever you like. [php]<script> jQuery( document...
WooCommerce Tips
How to replace Howdy message in WordPress
I'm guessing someone in Texas had something to do with the word "Howdy" being the welcome prefix in WordPress. It's easy enough to change. Add the function below to your child theme functions.php file. [php] /* replacing Howdy with Hello */...
How to add search fields to WooCommerce orders page
You may find it useful to have additional search fields in the WooCommerce orders page in the WP admin area. Add the function below to your child theme functions.php file. [php] /* add search fields to woocommerce orders page Allowed search fields:...
How to prevent hidden WooCommerce products from showing up in WordPress search results
Add the function below to your child theme functions.php file. [php] /* Preventing Hidden WooCommerce products from showing up in WordPress search results */ if ( ! function_exists( 'gamma_search_query_fix' ) ){ function gamma_search_query_fix(...
How to move WooCommerce category description to bottom of page
For SEO reasons you should have good text on your WooCommerce category pages. But, you may want to display your products first. Add the function below to your child theme functions.php file.
How to add Order Again button to WooCommerce My Account / Previous Orders page
Add the function below to your child theme functions.php file. [php] /** * Add order again button in my orders actions. * * @param array $actions * @param WC_Order $order * @return array */ function cs_add_order_again_to_my_orders_actions(...
How to remove product image rollover on WooCommerce product pages
Add the function below to your child theme functions.php file. [php] // removing the product image rollover function remove_product_zoom_support() { remove_theme_support( 'wc-product-gallery-zoom' ); } add_action( 'wp',...
How to add alt tags to WooCommerce product images
Add the function below to your child theme functions.php file. [php] // adding alt tags to product images add_filter('wp_get_attachment_image_attributes', 'change_attachement_image_attributes', 20, 2); function change_attachement_image_attributes(...
How to update WooCommerce order status to processing when an order is placed using PayPal
How to update WooCommerce order status to processing when an order is placed using PayPal. Add the following PHP code to your child theme functions.php file. [php] function update_wc_order_status($posted) { $order_id = isset($posted['invoice']) ?...
How to change the “Proceed to PayPal” button text on the WooCommerce checkout screen
The default PayPal buttons says "Proceed to PayPal". You may want to change this to something else like "Continue to Pay" or whatever you like. Add the following PHP code to your child theme functions.php file. [php] add_filter( 'gettext',...