Knowledge Base

Images are not showing in templates other than index

Images showing only on the index and not on other pages usually occurs when someone is using a relative URL in order to display the images.  For instance:

<img src="./images/nameofimage.jpg" />

This will not work because URLs in ExpressionEngine point to virtual directories, not directories that actually exist on the server.  Furthermore, the URLs are incredibly dynamic.  The way to have your images show up in all templates is to either call them from root, ie:

<img src="/images/nameofimage.jpg" />

Notice this missing period before /images.

Or, you can use the full URL:

<img src="http://www.YOURSITE.com/images/nameofimage.jpg" />

Last Updated on Jun 04, 2007 at 10:45   ( Permalink )
Category: Templates, Other, Technical Issues, Troubleshooting