How to create splash page in wordpress

4098 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',,en,'yourdomain.com',,en,'QUERY_STRING',,en,'splash.html' شامل ہیں,,en], '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

جواب دیجئے