Support » Fixing WordPress » adding flash and images to the layout

  • I am trying to add images and a flash movie to the layout on the index.php page. I have the flash movie in a <div> above my 4 columns of content. It looks like it’s properties are being read since’s it pushing the other divs down, but it seems like the path is incorrect or something because the movie doesn’t render. Also, when i’ve tried placing other graphics but they never seem to display. I am putting all these assets in the images folder and using the path “images/filename” to link to the images. I can place graphcs through the style sheets not by inserting code in the pages. Any thoughts?

    You can see my site below:
    http://www.theblogofamerica.com/testing_environment

Viewing 2 replies - 1 through 2 (of 2 total)
  • The problem is the path of the filename that you’re trying to use. You have the path as “images/filename” which would output the following URL “www.theblogofamerica.com/images/flashfile.swf”. That path isn’t where you’re putting the flash file though, but the correct path for the file is “www.theblogofamerica.com/testing_environment/wp-content/themes/beta/images/flashfile.swf”. If you want to have the path seperate from the theme directory, then just add the folder “images” under the testing_environment directory root. I hope this helps.

    If you want to automatically insert the path to images in the theme directory you can use <?php bloginfo('stylesheet_directory'); ?>/images/ to retrieve it for you. That way you also don’t have edit anything when you move the theme (as I suppose you will since it’s in a “testing_environment” now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding flash and images to the layout’ is closed to new replies.