Category: WordPress

How to get current year shortcode on WordPress – JavaScript

How to get current year shortcode on WordPress – JavaScript

This is very important to show the current year on the footer for copyright purposes. But sometimes we can’t do it because of the theme rules. Some WordPress themes have the permission to show the dynamic display of the current year on the footer only. If we edit the footer by using Elementor or we

Read More
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 tag. Step 02:

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