There’s two ways of doing it.
The first way is to use JavaScript to set up a refresh in 3 seconds after the page has loaded. The second way is to set up a META redirect. JavaScript works as long as your visitors have JavaScript turned on (most will, but there’s always going to be someone that doesn’t), but the META redirect will work all of the time.
Regardless of that, you should always have another button or link saying something like “If you aren’t redirected in 3 seconds please click here” for people who’s browsers don’t allow the redirects, or who are just impatient.
Thank you!
As you’ve probably noticed, I’m an apprentice. Would you be so kind and write this JavaScript for me?
<script type="text/javascript">
window.onload=timeout;
function timeout(){
window.setTimeout("redirect()",3000)}
function redirect(){
window.location="/page_here/"
return}
</script>
Add to the specific page template – note this belongs in the head so also create custom header and call that in the specific page template.
Edit: redacted this line
Great. I’ll try. Thank you,
Mirko
Well, I inserted your script directly in intermediate page (in text mode) and WordPress changed script into:
<script type=”text/javascript”>// <![CDATA[
window.onload=timeout;
function timeout(){
window.setTimeout(“redirect()”,3000)}
function redirect(){
window.location=”desired-page/”
return}
// ]]></script>
But most important – it works!
You can check it here: http://www.tangens.si/ponudba/
Click on the left option (on the house full of people).
So Thank you again!