Author: admin

WooCommerce: How to remove the “default sorting” dropdown

There is predefined hook  which is used to add sorting dropdown in woocommerce and also there is option in wordpress to disable or remove particular hook using “remove_action” function.Please  check ,read about it more and add the following code  snippet to your theme functions.php   // remove default sorting dropdown remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

How to hide Contact Form 7 after successful send

As we know that contact form 7 is built up using different action and filter hooks.Here, we need to use JavaScript action hook “on_sent_ok” through which we can hide the contact form 7 as on_sent_ok  hook is being called after the form is successfully submitted.There is option to add JavaScript code in Additional Settings form