Jump to content

change homepage link


huggettm

Recommended Posts

1. Homepage Link in Categories List on the Store Homepage

To change this link, OPEN skins/xx/styleTemplates/boxes/categories.tpl

FIND this code:

Classic or Legend skin:

<li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

Killer skin:

<td class="topCatsTabMid"><a href="index.php" class="txtCat">{LANG_HOME}</a></td>

REPLACE index.php with the new link you wish to point to, example http://www.mysite.com

SAVE the file and UPLOAD the altered file to your webserver.

2. Hompage Link in Useful Links box on the Store’s Cart Pages

To change this link, OPEN includes/boxes/cart.inc.php

FIND this code:

$links[] = array (

'link' => "index.php",

'text' => $lang['front']['boxes']['homepage']);

Please note that the code 'link' => "index.php", appears elsewhere in this file, but you need to

change the one in the block above that calls for ‘homepage’ from the language file. Again, you

simply replace index.php with the URL that you want the link to point to.

SAVE the file and UPLOAD the altered file to your webserver.

3. Do you wish to change the text, “Homepage�

If you also prefer to change the text “Homepage†so that it says “Home†or something else, you

will need to alter the language file. This is the best method of making it consistent on both the

store pages and the cart/registration pages.

To change this text, OPEN language/xx/lang.inc.php

At around line 1464 FIND the code:

'homepage' => "Homepage",

PLEASE NOTE that this code appears more than once in the file, and the line number will

probably be very different for you . . . You need only change the code that appears below the

section $lang['front']['boxes'] = array( and change only the part shown in red above!

Change Homepage to whatever you want the text to be for your new links.

SAVE the file and UPLOAD the altered file to your webserver.

The above text is copied from markscart's wonderful tutorial on changing links.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...