Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Image url for home page welcome text

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-10-2011, 02:51 AM
 
Number One Number One is offline
 

Member
  
Join Date: Apr 2011
Posts: 11
 

Default 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.
__________________
4.4.2-Gold
Add-on modules-none
Reply With Quote
  #2  
Old 06-10-2011, 04:12 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Image url for home page welcome text

What is your image path that you have given??
__________________
4.6.1 Platinum


Reply With Quote
  #3  
Old 06-10-2011, 05:55 AM
 
Number One Number One is offline
 

Member
  
Join Date: Apr 2011
Posts: 11
 

Default Re: Image url for home page welcome text

<img src="{$ImagesDir}/thomepagepic.jpg">
__________________
4.4.2-Gold
Add-on modules-none
Reply With Quote
  #4  
Old 06-10-2011, 10:24 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
Number One (06-13-2011), Sunray Sales (06-10-2011)
  #5  
Old 06-10-2011, 01:00 PM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default 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!
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote

The following user thanks Sunray Sales for this useful post:
Number One (06-13-2011)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020