How to create splash page in wordpress

245 Views

On the root of wordpress installation, in the index.php, before the comment Loads the WordPress Environment and Template, add this

if( (strpos($_SERVER['HTTP_REFERER'], 'yourdomain.com') === false) && !$_SERVER['QUERY_STRING']){
    include 'splash.html';
    exit();
}

Then edit/create your splash.html.

Please note that any WordPress update might overwrite the index.php on the root.

0 Comments

Leave a Reply