Zen Cart Logo
Forums / Basic Configuration / home link

home link

Locked

Views: 1,420

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Jan 2007, 5:01 AM
#1
crafter1 avatar

crafter1

New Zenner

Join Date:
May 2005
Posts:
38
Plugin Contributions:
0

home link

ok, i think this is it and i can label this store a complete go.

how can i make it so wherever some sees or clicks the word home, it'll take them to the root web and not the store main index.

id rather have that home be the home page of my site. i'd at least like to try it like that for a bit if it's possible.

thanks

20 Jan 2007, 6:00 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: home link

You might think about adding a link instead as the "Home" link is understood by many and you want to keep your shoppers in your store and not at your home page.

In the tpl_header.php file find this hihghlighted code and either add one before this line and call it "main" or?? and/or change the href info

<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back"> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if ($_SESSION['customer_id']) { ?>
20 Jan 2007, 6:14 AM
#3
crafter1 avatar

crafter1

New Zenner

Join Date:
May 2005
Posts:
38
Plugin Contributions:
0

Re: home link

i don't follow how to do that, i found the file though

can you tell me how to do it. I would like it to read Back to Main Website

For now im going to make it obvious via the root web.

thanks

20 Jan 2007, 6:45 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: home link

In that file find the bof below and insert the highlighted string with your information and this will place an additional link in this bar

<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back"> <li><a href="http://www.your_home_page_url.com/">Your text</a></li>
<ul class="back"> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if ($_SESSION['customer_id']) { ?>
20 Jan 2007, 6:58 AM
#5
crafter1 avatar

crafter1

New Zenner

Join Date:
May 2005
Posts:
38
Plugin Contributions:
0

Re: home link

very cool, it worked like a charm.

what file and where do i edit to change the word Home to Store's Front Page.

Thanks for all the help, the upgrade is really nice.

20 Jan 2007, 7:36 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: home link

Store's Front Page is rather long and you might reconsider this with a short description. Also as this is parsed the highlighted inclusion must be escaped to prevent errors this is

You can use the admin > tools > developers tools > bottom box > enter the text you are seeking > from the drop select the files to look in > search

Most of these defines are in the english.php file

opps: the parser here displayed the single quote and not the sequence so I am posting it with a space between each and for you to use you must remove the spaces:

& # 1 4 6 ;