How To Add Download Wait Countdown Page in WordPress.

How To Create A Countdown Timer Download Button For Any Files.

How To Add Download Wait Countdown Page in WordPress.

If you are going to sell any of the free stuff like pdf files, themes, Plugin etc in your WordPress site to increase your website traffic while providing free stuff there are two different ways to gain traffic to your website nowadays many of the users goes for the free things so make sure you can provide free ebooks, pdf files and many more etc.

Two ways to create a professional download Link.

(1) While providing a free files in your website so first step is to create an automatic download link so that the visitors can directly download any files from your website by just one click if you don’t Know how you can create a direct download link for any files on google drive.


Read this Article.

How to create a direct download link for any files on google drive.


(2) If you want to increase your website traffic and the watch time than follow the steps and create a timer for your download link.

For Example: This is the most useful method when you are providing any free files or any other folder in your WordPress post now the main highlights is most of the blogger used to increase their website traffic is To create a timer for your download button just like when the user reads your articles and you have provided any free download files to the visitors now the reader wants to download the files which you have provided but he can’t directly download the given files because at that movement the timer will be start and he has to wait for 15 to 20 seconds and then only he can download the files directly from your website.

Step to Create a Countdown Timer Download Buton For Any Files.

(1) Create a download button by using Ultimate shortcode Plugin.


How To Add Download Wait Countdown Page in WordPress.


For Example: If you’re using the Ultimate shortcodes Plugin then open the shortcode from your post and select the button option and then paste the download url of your files.


How To Add Download Wait Countdown Page in WordPress.


How To Add Download Wait Countdown Page in WordPress.


How To Add Download Wait Countdown Page in WordPress.


(2) After you have completed the first step to create a download button now the second step is to create a timer for your download button now first open your cpanel

Type: https://www.example.com/cpanel


How To Add Download Wait Countdown Page in WordPress.


Click on the file manager option


How To Add Download Wait Countdown Page in WordPress.


Now open the file manager and select your website in which you want to create a timer link If it is in public html or ftp just select your website url.


How To Add Download Wait Countdown Page in WordPress.


(3) Open you website URL in file manager come to the option called wp-content-themes.


How To Add Download Wait Countdown Page in WordPress.


How To Add Download Wait Countdown Page in WordPress.


Select your default theme in which your website is running.


How To Add Download Wait Countdown Page in WordPress.


After you have open your themes section now swipe down and as you can see the option called wp-footer select wp-footer option and click on the edit button so we need to paste the HTML Code in the themes-wp-footer section.


How To Add Download Wait Countdown Page in WordPress.


(4) Now the time to place the HTML code in the wp-footer section copy the given HTML code which is mentioned below


<script>
var downloadButton = document.getElementById("download");
var counter = 10;
var newElement = document.createElement("p");
newElement.innerHTML = "You can download the file in 10 seconds.";
var id;
downloadButton.parentNode.replaceChild(newElement, downloadButton);
id = setInterval(function() {
counter--;
if(counter < 0) {
newElement.parentNode.replaceChild(downloadButton, newElement);
clearInterval(id);
} else {
newElement.innerHTML = "You can download the file in " + counter.toString() + " seconds.";
}}, 1000);
</script>


Come to the wp-footer edit page now just swipe down and there you can see the word called <?php wp_footer(); ?>now at the down paste the given code, If you want to increase the timer upto 20 seconds. You can see the default timer is 10 seconds change it to 20 seconds.


How To Add Download Wait Countdown Page in WordPress.


Now we want to link this HTML Code with our download button it is very simple we have to copy the code called id="download" it has given in the html code simply copy this ID and click on the save changes button.

(5) The hole work has been completed now we have to past the ID which is id="download" into the download button which we have created paste this ID on the left hand site below the url option Understand with the given image.


How To Add Download Wait Countdown Page in WordPress.


How To Add Download Wait Countdown Page in WordPress.


We have created the timer download button this will work with unlimited download button only you have to paste this ID id="download" in all the download button. You can use this ID only once per post don’t use this timer ID many a times in a single post otherwise it will now work properly so make sure use this timer ID in per single post. I hope you have understood the method to create a timer download button


Also Read This Articles:


Bhavesh Parmar

MY NAME IS BHAVESH PARMAR I HAVE STARTED THIS WEBSITE TO SHARE A COMPLETE KNOWLEDGE ABOUT HOW YOU CAN START YOUR OWN BLOG WEBSITE AND GENERATE MONTHLY REVENUE.

This Post Has One Comment

  1. आपकी Website बहुत अच्छी है। में ने आपकी Website को bookmark करके रखा है। आपके article भी काफी Useful है। Thanks for sharing very useful knowledge

Leave a Reply

Close Menu
×

Cart