Category: WordPress

  • Home
  • Category: WordPress
Click to copy content by javascript

Click to copy content by javascript

Sometimes we need to add a function to copy content automatically. Suppose you want to copy a big content or code by clicking a “Click to copy” or something like this indicator. Here is the solution. Please follow the steps as shown below. Step 01: link this by pasting in the HTML head tag. Step

Read More
Empty cart before add to cart in WooCommerce

Empty cart before add to cart in WooCommerce

This function will reset/empty the cart and will add the last product to the cart. This is a WooCommerce PHP function that over wright the WC cart function. We can use this function for individual product selling websites or for a subscription website. Add the following code in the function.php file of your active child

Read More
1 2