WordPress.org

Ready to get started?Download WordPress

Forums

Flash Intro to WordPress Site (11 posts)

  1. josephpalmer
    Member
    Posted 1 year ago #

    I'd like to add a Flash intro to my WordPress site, dctp.org.
    The animation lasts 10 seconds. At the end of the flash animation, I'd like to either:
    1. have the "regular" home page show
    or
    2. the visitor can click to go to the home page.

    Also, I don't want the animation to re-play each time the visitor re-clicks the home tab.

  2. fawkesblog2
    Member
    Posted 1 year ago #

    This doesn't answer your question but for your consideration any extra thing on a website that does not need to be there should not be there. Any extra click that does not need to be there should also go.

    Think of it this way. A visitor will only click so many times when they visit. If that is 2-3 clicks do you really want them to first see a page that actually serves no purpose other than showing a visual and not actually let them get to content you would actually rather they see.

    Plus flash does not work on iphones or ipads so you are stopping a growing number of people from seeing you.

  3. josephpalmer
    Member
    Posted 1 year ago #

    Thanks for the good information! I understand this, but my boss would still like a flash intro. :)

  4. fawkesblog2
    Member
    Posted 1 year ago #

    Ok first create a page and give it a name.

    Now under your settings menu go to "reading". On that page you will see at the top a section titled "front page displays. The first drop down menu select your new page, then save. This will be the page that visitors first land on.

    Some thoughts on adding flash here http://wordpress.org/support/topic/adding-flash-to-pages?replies=17

    I don't know how to make it so that page only shows the first time someone visits but that should get you started.

    You may find this article useful as well. http://wp.tutsplus.com/tutorials/how-to-make-a-splash-page-with-wordpress/

  5. josephpalmer
    Member
    Posted 1 year ago #

    I guess I was thinking the best way would be to keep the flash page separate from the WordPress site...like when someone visits the site, index.html (with the flash animation) loads first, and when the animation is over, index.php (the WordPress home page) loads.
    This way, after reaching the WordPress site, clicking the home page tab wouldn't restart the flash animation.

    Is this do-able?

  6. niknaz
    Member
    Posted 11 months ago #

    @josephpalmer, did you ever find a solution? I need to do this exact thing.

  7. josephpalmer
    Member
    Posted 11 months ago #

    Yes, I did find a solution to this question. But I ended by abandoning it because I wasn't very impressed by the result.

    I found the solution on the forum of my web hosting provider. I'll try to find it again and post it here. I believe I just had to make the page with the flash animation and save it to the same folder as the wordpress home page. Then I had to change a couple lines of code in the wordpress home page so the flash page would load first, but only load once.

    I'll go look for the solution now.

  8. josephpalmer
    Member
    Posted 11 months ago #

    Hi, I found the post that worked for me before:
    (Thanks to @sarajty)

    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!

    The original post was here.

  9. josephpalmer
    Member
    Posted 11 months ago #

    So...make an intro.html file that has your flash intro (in the main directory) and then use the code above in WordPress's index.php file and it should work for you!

  10. fiazio
    Member
    Posted 10 months ago #

    Hi, I found the post that worked for me before:
    (Thanks to @sarajty)

    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!

    The original post was here.

    THANK YOU!

  11. optimizzo
    Member
    Posted 9 months ago #

    helped it... thank you guys...

Topic Closed

This topic has been closed to new replies.

About this Topic