CMS & WordPress
I can get the images to display on my pages on the sandbox using the code
<img class="pull-left" src="<?php echo get_stylesheet_directory_uri(); ?>../coreImg/coreLogo100x100px.png"/>
hower once the site is live the images no longer display (yes I checked, they are there). My test site is at http://thebigmeow.us/
and also and I google this first as well I can't get the background images to display at all, sandbox or live. And of course the code I tried was:
border:2px solid #000;
I added the border to see if it would show up. It does. the images don't, w/either one of the tags.
Am using root retlehs. I have attached an image of what I get as well. Anyone has run across this problem & solved it please?
Thank you all.
Passing this along in case it helps anyone else: Nick Fox from the google roots group provided the information on how to fix the missing images. In part.
Nick Fox firstname.lastname@example.org via googlegroups.com
5:30 PM (27 minutes ago)
Put the images into /assets/img within the theme folder. You can then link to them like so:
<img class="pull-left" src="/assets/img/coreLogo100x100px.png"/>
Applying this to your other thread:
the fist part worked, when it came to placing the image on page. The flip side is that the same code doesn't work on the sandbox. And the background image is still not displaying.
If the path to the image is being generated from PHP then view the source of the page to see what the resultant path ends up being to see if it is what you expected when you uploaded the images.
For background images referenced from the CSS the path needs to be relative to the HTML file location.
Check any capitalization in file names. Windows is not case sensitive but most web servers run Linux which is case sensitive.
Thanks stephen will take a look at all of that. I think partially is the root theme that has a diff set and it is complicating things.
This topic is now closed. New replies are no longer allowed.