April 21, 201016 yr I don't use wordpress too often so please excuse my ignorance. I am trying to do a direct call to the image using the html tag: <img src="images/imagename.jpg"> I am also trying to put a jquery slideshow in the index.php and it's not showing up. Am I not following some wordpress rule? I notice in template css styles they call directly to the images and it works, like this for example: background url(images/imagename.jpg); Any thoughts here? I am on a major deadline and this has halted me.
April 21, 201016 yr Author Sorry but I figured it out. You need to call files in the html in their full path wp-content/themes/THEME-NAME/images/image-name.jpg awesome.
April 21, 201016 yr Sorry but I figured it out. You need to call files in the html in their full path You really don't. I imagine your short paths were messed up somehow.
April 21, 201016 yr Author You really don't. I imagine your short paths were messed up somehow. well I was calling to the images as <img src="images/image-name.jpg"> and that wasn't working. should that typically work? Because as soon as I changed it to: <img src="wp-content/theme-name/images/image-name.jpg"> it started to work. but the problem I have now is, I was calling to that image in my header (it's a banner ad) so now when you go to say www.site.com/about/ it breaks the image because I'm guessing because it's no longer in that same directory.. I'm thinking about calling to a template that has the banner in it instead of the image directly like say: <?php include(TEMPLATEPATH . '/header-banner.php'); ?> seems to be working in the sidebar.php for the square ads. Is there something I am missing here as to why the direct call to an image isn't working?
Create an account or sign in to comment