Category : WordPress

Here’s a javascript you can use to automatically complete WooCommerc orders from any status. This example uses the ‘processing’ status. add_action(‘woocommerce_order_status_changed’, ‘ts_auto_complete_virtual’); function ts_auto_complete_virtual($order_id) { if ( ! $order_id ) { return; } global $product; $order = wc_get_order( $order_id ); if ($order->data[‘status’] == ‘processing’) { $virtual_order = null; if ( count( $order->get_items() ) > 0 ..

Read more

Here’s a function I found where it creates a shortcode where you can place anywhere on your website through the editor, widgets, etc. I use DIVI, so it works with it also. The shortcode after you put function in your themes functions.php is [show_loggedin_as] Put the following in your child themes functions.php function show_loggedin_function( $atts ..

Read more

Add the following code to your child themes functions.php file: // DISABLE WOOCOMMERCE LIGHTBOX function remove_image_zoom_support() { remove_theme_support( ‘wc-product-gallery-zoom’ ); remove_theme_support( ‘wc-product-gallery-lightbox’ ); } add_action( ‘wp’, ‘remove_image_zoom_support’, 100 ); reference: https://generatepress.com/forums/topic/disable-lightbox-image-zoom-wo..

Read more

If you have post tags and you want to use them for your WooCommerce products also, the following will definitely help you out.  It works great, but the only caveat is when you click on the tag itself, it will only show posts related to the tag. If you know how to show both post ..

Read more

In your child themes function.php file, add the following code. /** * Add the product’s short description (excerpt) to the WooCommerce shop/category pages. The description displays after the product’s name, but before the product’s price. * * Ref: https://gist.github.com/om4james/9883140 * * Put this snippet into a child theme’s functions.php file */ function woocommerce_after_shop_loop_item_title_short_description() { global ..

Read more

Sometimes you may not want to have the zoom hoving effect. Here’s some code you can put in your child theme functions.php file If you don’t know how to do or need assistance, feel free to contact us. Add following code in your child theme functions.php file: function remove_image_zoom_support() { remove_theme_support( ‘wc-product-gallery-zoom’ ); } add_action( ..

Read more

In WordPress to remove the divider line between the main content and sidebar area, you need to write the following css in the Customize > Additional CSS section. @media (min-width: 981px) { #main-content .container:before {display: none !important;} } I found this information from this YouTube video: https://www.youtube.com/watch?v=P0qkHS7Wucc NOTE: YouTube video example uses DIVI theme. I ..

Read more

Tested and works with DIVI version 3.26.3 These instructions are referencing the following blog post: https://divibooster.com/open-divi-map-module-pin-details-by-default/ Before making any changes to your website, make sure you are using a child theme. This plugin works well for me to create child them. https://wordpress.org/plugins/child-theme-configurator/ After I create child theme, I delete the plugin because it’s no longer ..

Read more

WordPress Database Error – First thing you should do is to make sure that you are getting the same error on both the front-end of the site, and the back-end of the site (wp-admin). If the error message is the same on both pages “Error establishing a database connection”, then proceed onto the next step. ..

Read more

Here’s a link to how to add font awesome icons to your menu.  It saves memory because it doesn’t use a plugin and also looks professional. How to Add Icons to Custom WordPress Menus Without Plugins I tried it on a DIVI website and had to add the following css.  Keep in mind your menu ..

Read more