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)
-   -   Modify Link to Cart Home Page (https://forum.x-cart.com/showthread.php?t=32388)

Lynne 07-07-2007 11:46 AM

Modify Link to Cart Home Page
 
Sorry for the no-duh question, but I can't find this in the templates: The logo at the top of the page (xlogo.gif) links to store/index.html. I want it to go to store/home.php.

I would really appreciate direction on where to find this in the code.

TIA, Lynne

4.1.7

chamberinternet 07-07-2007 02:51 PM

Re: Modify Link to Cart Home Page
 
The logo is found here - /skin1/head.tpl

Regards

Shafiq :sK

P.S - Have a look at this v.useful post:
http://forum.x-cart.com/showthread.php?t=21529

Lynne 07-07-2007 09:04 PM

Re: Modify Link to Cart Home Page
 
I already found the logo at skin1/head.tpl and I've read the Template Editing Guide. So i'm obviously missing something.

Here's the code from head.tpl:

<a href="{$http_location}/"><img src="{$ImagesDir}/xlogo.gif" width="777" height="100" align="middle" alt="" /></a>

Do I need ot modify "{$http_location}/"? If yes, how?

Or is there another way to modify the link for xlogo.gif?

Thanks, Lynne

chamberinternet 07-07-2007 10:47 PM

Re: Modify Link to Cart Home Page
 
Modify to:

<a href="/store/home.php"><img src="{$ImagesDir}/xlogo.gif" width="777" height="100" align="middle" alt="" /></a>

Shafiq :sK

Lynne 07-07-2007 11:23 PM

Re: Modify Link to Cart Home Page
 
Worked great -- thanks!

carpeperdiem 07-08-2007 05:22 AM

Re: Modify Link to Cart Home Page
 
The problem with hard coding a link like this is that you are going to mess up your SEO. There should be only ONE path to your store, ever, and that link should be www.yourdomain.com

In my opinion, you should hard code this image link to <a href="/"> and then let your htaccess do the rest. This assumes your htaccess takes your customer where you want...

If you have a bunch of inbound links (some to www.domain.com, some to www.domain.com/store/home.php, etc.) the search engines (especially google) will share page rank betwen the pages -- they are not identical... and you risk duplicate content issus.

Be consistemt in your links and you won't have these issues.


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

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