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

Modify Link to Cart Home Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-07-2007, 11:46 AM
 
Lynne Lynne is offline
 

Advanced Member
  
Join Date: Dec 2002
Posts: 31
 

Default 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
__________________
4.1.7
Reply With Quote
  #2  
Old 07-07-2007, 02:51 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default 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
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 07-07-2007, 09:04 PM
 
Lynne Lynne is offline
 

Advanced Member
  
Join Date: Dec 2002
Posts: 31
 

Unhappy 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
__________________
4.1.7
Reply With Quote
  #4  
Old 07-07-2007, 10:47 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default 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
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #5  
Old 07-07-2007, 11:23 PM
 
Lynne Lynne is offline
 

Advanced Member
  
Join Date: Dec 2002
Posts: 31
 

Default Re: Modify Link to Cart Home Page

Worked great -- thanks!
__________________
4.1.7
Reply With Quote
  #6  
Old 07-08-2007, 05:22 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
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 03:18 PM.

   

 
X-Cart forums © 2001-2020