Create a landing page before the wordpress home page

0

I am wanting to create a landing page with html / css / js where when the user enters he sees the landing and after a while he redirects to the wordpress page. (all in the same domain)

  • Try touching the .htaccess but the problem is that it takes me to the same place always:

    # BEGIN WordPress    RewriteEngine On

    RewriteBase /project/index.php

    RewriteRule ^ index.php $ - [L]

    RewriteCond% {REQUEST_FILENAME}! -f

    RewriteCond% {REQUEST_FILENAME}! -d

    RewriteRule. /project/index.php [L]  

    DirectoryIndex ./landing/test.html

    # END WordPress

  • this would be my landing page (it does a redirect with js) it would have to go to the wordpress site but a loop is created always to the same landing

    $ (function () {

    $ (". logo"). fadeIn (2000);

    $ (". tlt"). fadeIn (1000);

    $ (". tlt2"). fadeIn (1000);

    $ ('. tlt'). textillate ();

    $ ('. tlt2'). textillate ({

    initialDelay: 1000

    });

    setTimeout (function () {

    url="./";

    $ (location) .attr ('href', url);

    }, 5000);

    })

asked by Leoh 09.04.2017 в 19:20
source

1 answer

0

I recommend you use the plugin " Very Simple Splash Page " ( link ) and the splash page you can use jQuery to redirect URLs with time, for example:

$(document).ready(function() {  
    window.setTimeout(function(){
        window.location.href = "http://www.tusitio.com/inicio";
    }, 10000);
});

or you can use the plugin " Shortcode Redirect " ( link ) and you use the following shortcode:

[redirect url='http://www.tusitio.com/inici' sec=’10‘]
    
answered by 10.04.2017 / 21:56
source