X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Image url for home page welcome text (https://forum.x-cart.com/showthread.php?t=59728)

Number One 06-10-2011 02:51 AM

Image url for home page welcome text
 
Hello,
I have been able to edit the welcome text on the home page using the wysiwyg editor and want to add an image in the same area. I have uploaded an image to the images file but I am unsure what the url should be so all attempts so far just leave a blank rectangle. I'm pretty sure it's about the path as I have used the image ok on another site previously.
Could anyone help with this one please?
Thank you
D.

Learner 06-10-2011 04:12 AM

Re: Image url for home page welcome text
 
What is your image path that you have given??

Number One 06-10-2011 05:55 AM

Re: Image url for home page welcome text
 
<img src="{$ImagesDir}/thomepagepic.jpg">

cflsystems 06-10-2011 10:24 AM

Re: Image url for home page welcome text
 
Try with <img src="`$ImagesDir`/thomepagepic.jpg"> or specify relative path instead of $ImagesDir. You can't use {smarty_variable} in language variable

Sunray Sales 06-10-2011 01:00 PM

Re: Image url for home page welcome text
 
Quote:

Originally Posted by cflsystems
Try with <img src="`$ImagesDir`/thomepagepic.jpg"> or specify relative path instead of $ImagesDir. You can't use {smarty_variable} in language variable


Thanks Steve this worked for me, I put a post about using relative paths for putting images in descriptions for categories, and I removed the full URL and it worked.

Since you can only put html in the description of categories, no smarty or PHP, I was simply left with:

<img alt="" src="images/printing_stamps_imgs/Self_Inking_Custom_Stamps.jpg" />

Now when I move my cart from a subfolder to the root, I won't have to modify these urls, since it is relative.

Thanks again!


All times are GMT -8. The time now is 11:00 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.