Jump to content

Image Relative URL


Claudia M

Recommended Posts

This has bugged me for quite awhile so I'm finally going to ask.  I use a custom skin based on Foundation.  I want to create my own folder in custom skin/"images" for images I will use for that skin only.  I can't figure out the relative url for these images.  I've tried many combinations of dots and / but can't get it.  What should I use?

This works if the image is stored in the main images folder/icons for cubecart  <img src="../images/icons/insta-4040.gif but what if I wanted to put it in my custom skin/images/myfolder

Thanks in advance for any and all help

Claudia

 

 

Link to comment
Share on other sites

There are images used for the skin, then there are images that belong to categories and products. I think you mean skin template resources.

Here is a URL for an image used by the Foundation skin:

<img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_half.png" alt="">

You can leave off the {$STORE_URL} if you have a good reason, but we recommend you keep it.

In the skin folder /images/, create a subfolder according to your needs, and apply the pattern above.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...