Need Help with Wordpress Graphics...

by 3 replies
4
Ok here is the deal I have gotten my graphics and flash to work on the home page of my wordpress blog but when I go to individual post the header graphics and sidebar flash are not working. Does anyone know the solution to this problem? my blog is

The MLM EXPRESSWAY...

Thanks for any help...
#programming #graphics #wordpress
  • Hi Marty,

    It's because you're not using absolute urls. This is the header image definition

    Code:
    <img style="border: 0px solid ; width: 542px; height: 126px;" src="New3MLMExpressWayHeader.jpg" alt=""/>
    The template looks for that image in the directory your page is in. So if you are on the home page, it looks for it in the root. If you are on a category page, it looks for it under yourdomain.com/category/

    With Wordpress, theme images are usually stored in the theme folder, so wp-content/themes rthemename/images/

    Then you would use this code to call the image from the theme

    Code:
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/New3MLMExpressWayHeader.jpg"  style="border: 0px solid ; width: 542px; height: 126px;" width: 542px; height: 126px;" />
    • [ 1 ] Thanks
    • [1] reply
    • That worked great for the graphics... Thanks... Do you know what I could do for the flash optin box I have it is doing the same kind of thing?
  • Yes, you could do the exact same thing except that you would use the php call within the Flash object tag.

    It's the same issue.

    Code:
    src="<?php bloginfo('stylesheet_directory'); ?>/images/blog1.swf"/>
    That is assuming you want to save the swf file in the images folder. If you want to save it in a different location, just change "images" to something else.

    If you are including it with a sidebar, you can't use the text widget for php code, so you'll have to install a php widget plugin if you don't already have one and use that instead.

Next Topics on Trending Feed

  • 4

    Ok here is the deal I have gotten my graphics and flash to work on the home page of my wordpress blog but when I go to individual post the header graphics and sidebar flash are not working. Does anyone know the solution to this problem? my blog is The MLM EXPRESSWAY...