Just updating my research here…
So far, I have been able to ascertain that if it is an image used as part of the content window for a page and probably a post, then the image comes from the images folder in the root wordpress folder (ie. ../images/image-name.png). If the image is coming from a stylesheet used as a background image, then it uses the image folder within the theme folder (ie. images/image-name.png). What I can not figure out is when you use an image in a php file, for example, my logo in the header.php file. I used <img src=”images/logo.png” /> (this location is in the first level of wordpress folder, i.e. wordpress/images/logo.png) which works fine when my homepage goes out and looks for header.php, but when I have any other page go out and look for header.php, the image does not display.
header.php is called from index.php most likely and your other post-pages are using archive.php or page.php or category.php etc..review with theme design…
Thanks for the reply, my header.php is being called by my index.php, but it is also being called by my page.php (or my derivatives thereof). All my pages start out calling header.php. My issue is that the images placed in my header.php, (e.g. <div><img src=”images/image.png” /></div>) only work on my front page, not on any other pages. All I have are pages thus far, I haven’t any blog pages, archives, catagories, etc. just a few core pages of my website thus far. All are created in the pages panel, all call the same header, but the one that is set to front page in “Settings>Reading>Front-Page” is the only one that accepts the image file path in the header.php… Does that make sense?
Are you placing such after the first body tag?
Yes, just after
<body <?php body_class(); ?>>
I guess theoretically, I am not even using index.php since I am diverting to a static page as my front page. I am only using page.php
I did a work around to get the logo in the top left corner to work, but if you look in the top right corner, that “e” is an image that only works on the home page
Oh yeah… this is a work in progress, so the only other link that works is the one in the bottom right labeled “ePub tour,” it will take you to a partially completed page that shows how the “e” disappears
I usually put all images in the theme images folder. Then, whenever I call an image, I use:
<?php bloginfo( stylesheet_directory ); ?>/images/imagename.jpg
Other solutions include setting a variable like this:
$imageurl = ‘http://www.mysite.com/images/’;
Then you can just make image sources like this:
<?php echo $imageurl ?>imagename.png
My friend… that is exactly the answer I am looking for. I knew there had to be a way to call on a centrally located image folder, but had no luck finding the answer. After hours of testing, I merely found that the pages are calling from the wp-content level and the background images in the stylesheets are being called from the theme level. This is exactly what I needed. Thanks!