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)
-   -   my logo only shows a blank box with x in top left corner (https://forum.x-cart.com/showthread.php?t=61472)

Crystalaid 11-03-2011 11:40 PM

my logo only shows a blank box with x in top left corner
 
Hi,


I am trying to make a logo appear.

I went to head.tpl and found the image section to add my logo.

Created a JPG and a GIF logo file but neither show when I add them to my head.tpl template.

I've loaded them into files OK.. and they look fin there, but when I save either file in the head.tpl, all I see is a blank box with a red square in the top left corner.

Can anyone please tell me what I am doingwrong?

Many thanks

Kind regards
Vicki :oops:

JWait 11-04-2011 04:32 AM

Re: my logo only shows a blank box with x in top left corner
 
From your description it sounds like a simple broken link. Are you sure you uploaded the logo to the exact place head.tpl is looking for it?

{$ImagesDir} is usually "x-cart root/skin1/images"

Crystalaid 11-04-2011 01:42 PM

Re: my logo only shows a blank box with x in top left corner
 
Hi and many thanks for your reply.

Not sure what you mean about a broken link, but I have uploaded my logo image to my image file. I did once have an image in the same file that worked fine, and I placed my new image in that same file and actually named it image2, and it is located fight under my image1 that works OK.

If I use image1, the logo on the screen is OK, but if I use image2, all I get is this blank box with a red square.

Do I need to addd my image2 somewhere else apart from Files?

I'm lost and hope you can steer me on the right track.

Many thanks and have a greta day.
Very kind regards
Vicki

JWait 11-05-2011 03:23 AM

Re: my logo only shows a blank box with x in top left corner
 
Your logo image is called in skin1/head.tpl where it says this...
Code:

<td class="HeadLogo"><a href="{$current_location}/"><img src="{$ImagesDir}/xlogo.gif" width="244" height="67" alt="" /></a></td>
{$current_location} ="wherever your x-cart installation is on your web server" (i.e. www.mydomain.com/)
{$ImagesDir}= skin1/images (i.e www.mydomain.com/skin1/images)

Make sure "xlogo.gif" is the same as your image. Either change the xlogo.gif to your image name in head.tpl, or your image name to xlogo.gif and make sure it is in the correct directory and has the correct filename extension.

You can check the location by right clicking on the "blank box with a red square" and choosing "View image". The location will be displayed in the browser url address bar. Make sure it matches exactly what is in head.tpl.


All times are GMT -8. The time now is 05:43 PM.

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