I wouldn’t use this method. If you must have a Flash intro – and I have strong feelings on the matter, but that’s another topic 😉 – I would use the static front page method.
OK I don’t get I want to integrate this
http://videohive.net/item/particle-writing-logo-cs3/135467
in the very front page before going into the home page. How can I do that all I need to know is how to create the very first page to integrate this!
Hello,
I had the same issue with the index.html file repeating the Flash intro over and over again. I ended up re-naming the page intro.html and it solved the repeat issue.
Then in order for the intro.html page to load at the main URL, and load only once, I changed the index.php file to this:
<?php
session_start();
if(!isset($_SESSION['flashIntroShown']))
{
$_SESSION['flashIntroShown'] = 1;
header('Location: http://yourwebsiteURL.com/intro.html');
}
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
I didn’t have to make any changes to the rest of the wordpress site. Hope that helps!
Thank you so much for this! I have a client who really wanted to keep the intro that she had when I moved her site from another CMS to WordPress. The static front page option wouldn’t work since I already have the site set up that way (I’m using WP as a CMS). Your code worked beautifully!
One question: with the old CMS, we had a session cookie script set so that if a visitor came back within 24 hours, they would skip the intro. How can I make that work? Should I incorporate that code into the index.php file as well?
Thank you!