Support » Fixing WordPress » Redirections Help

  • Hi, I would like the downloads on my website, to when clicked, all go to one page, and after let’s say 30 seconds it redirects to the download link. I think you can do this with URL Parameters, but I have no idea how to use them. Any help is greatly appreciated. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Josh


    Moderator and Editor Customizer

    Well, you can do it with javascript.

    The idea is that you will make your link.. and then use javascript to delay the link for 30 seconds.

    You will need the “Scripts and Styles” plugin first. Search for it in the repository here.

    Then, in your global “scripts” section, add this:

    document.write('<style type="text/css">#timed{display:none;}<\/style>')
     function delay_link(){
     var d=delay_link, t=document.getElementById('timed');
     setTimeout('delay_link()', 1000)
     else if(!d.c){
     setTimeout('delay_link()', 1000)

    Next, you will need to wrap whatever content you are delaying with a div with an id of timed. So, whenever you use anything with an id of timed, this effect will be applied.

    So, your html should look like this:

    <a id="timed" href='PATH_TO_YOUR_FILE'>Click Here to start your download</a>

    You can also add your own class to the link “a” tag above, if you wish to further style it via custom css:

    <a id="timed" class="my_style" href='PATH_TO_YOUR_FILE'>Click Here to start your download</a>

    Hope this helps get you started.

    Thanks you very much! This is increadibly helpful! One other quick question, by any chance would you know how lets say for example the download link is ?urlparam=DOWNLOADLINK (eg. ?urlparam= and with using that code it automaticly goes to that link after it redirects, so I don’t have to make a page for each link? Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirections Help’ is closed to new replies.