Viewing 3 replies - 1 through 3 (of 3 total)
  • jasonpaulweber

    (@jasonpaulweber)

    I don’t know why you’d want to have a flash background. Not really recommended. Adds a lot of weight to your site.

    WP backgrounds are done w/ your theme’s style.css file, and you can’t use CSS like you would a background-image property for .swf files. So I’m not sure how to accomplish this thing, html wise.

    This guy was able to do so by using his code there combined with this type of div tag.

    Again, I wouldn’t do that … if you see a site with an animated background, it’s probably an animated gif, and even then, I wouldn’t do that if you want the reader’s attention focused on your content instead of flying circles in the background.

    But your plugin just calls you to add the code:

    <?php wp_swfobject_echo(“movie.swf”, “width”, “heigth”); ?>

    in your template theme. So this means you’d go to index.php, single.php, page.php, category.php, archives.php … and insert it where you see fit there.

    Thread Starter dreamteam1965

    (@dreamteam1965)

    Thanks Jason.

    I do appreciate it could well be a large file and may not be a good idea and also could distract.

    I’m thinking maybe then in a flash movie in a sidebar.

    I guess it’s possible to create 2 extra side bars that run the full height of the page, 1 either side, and insert the movie there?
    Also where do I upload the movie to?

    This may sound like a wacky idea but I would love to have a small realistic looking goldfish that appears to randomly swim about either side of my site http://www.peterskelton.co.uk

    Don’t ask me why I want it it’s just a wacky idea of mine 🙂

    jasonpaulweber

    (@jasonpaulweber)

    Yeah, it’s definitely recommended you go without the flash background, and try to minimize your plugins after looking at your speed scores.

    I have you graded as a 68% (D) on YSlow. Use a tool ilke the p3 plugin profiler to see which plugins are hogging these resources.

    Why would you create extra sidebars? You don’t want to smush your content too much; remember, some people still use a 1024 x 768 screen resolution.

    I would assume this plugin calls for you to upload your .swf file to your media library, where all your images are (wp-admin >> media >> add new).

    Here’s a tutorial on how to add a sidebar to your WordPress theme, however.

    Personally, although I wouldn’t use a flying goldfish, if that’s your thing, then you would go into single.php and just above:

    <?php while ( have_posts() ) : the_post(); ?>

    You’d add:

    <?php wp_swfobject_echo(“movie.swf”, “width”, “heigth”); ?>

    if your .swf file is called movie.swf. On page.php, it’d be above:

    <?php while ( have_posts() ) : the_post(); ?>

    You’d repeat for index.php, above:

    <?php if ( have_posts() ) : ?>

    And you can always experiment with the placement(s) if you don’t like it/them. To ensure consistency, you could always add your plugin’s php snippet in every one of those php files above the:

    <div id=”content” role=”main”>

    and see how that looks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-swfobject use to create flash background’ is closed to new replies.