WordPress.org

Support

Support » How-To and Troubleshooting » Flash Intro to WordPress Site

Flash Intro to WordPress Site

  • josephpalmer

    @josephpalmer

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • fawkesblog2

    @fawkesblog2

    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.

    josephpalmer

    @josephpalmer

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

    fawkesblog2

    @fawkesblog2

    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/

    josephpalmer

    @josephpalmer

    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?

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

    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.

    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.

    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!

    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!

    optimizzo

    @optimizzo

    helped it… thank you guys…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Flash Intro to WordPress Site’ is closed to new replies.
Skip to toolbar