Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding an External Link in the Top Nav

Adding an External Link in the Top Nav

Locked

Views: 1,459

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Mar 2007, 3:41 PM
#1
blakemiller avatar

blakemiller

New Zenner

Join Date:
Oct 2005
Posts:
57
Plugin Contributions:
0

Adding an External Link in the Top Nav

Like many, my cart is housed in a sub-directory/section of my main site - a non-shopping cart, https://www.mydomain.com. The default top-nav has "Home - Log In - Etc. etc."

When clickingn on Home, it goes to the shopping cart home page, https://www.mysite.com/shop/index.php Good, but not good enough. It's a bit confusing to the ordinary user thinking that "home" is going to take them back to the main site.. where they originally came from, so in the /includes/english/header.php I've renamed the "home" link to "Catalog Home" here:

define('HEADER_TITLE_CATALOG', 'Catalog Home');

That worked good - at least it's not as confusing. But, i still need to add a link up UP to the main domain URL, or https://www.mysite.com. So, my top nav would look like:

Site Home | Catalog Home | Log In | etc.....

Is there a function to do this, or do i have to hard code it into one of the template(s)?

The actual site is here to give reference: http://216.81.70.195/shop/

Thanks for the help!

15 Mar 2007, 5:16 PM
#2
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: Adding an External Link in the Top Nav

I think if you copy the define('HEADER_TITLE_CATALOG', 'Catalog Home'); Paste it below that line and change Header_title_Catalog to Header_Title_Site.

Now you also have to copy the link that refers to header_title_catalog and pasted with the same changes and the url to the site.

That may get you going, but I'm sure a more knowledgeable Zenner will be by soon.

20 Mar 2007, 9:45 PM
#3
blakemiller avatar

blakemiller

New Zenner

Join Date:
Oct 2005
Posts:
57
Plugin Contributions:
0

Re: Adding an External Link in the Top Nav

I'll kick myself....

birdoasis, thnaks for sending me in the right direction. But, i didn't have to define anything or do any coding (PHP) at all. Silly me, after looking at the header code, i realized i could simply add a <a href="www.blhalbha.com">Text Here</a>

I'm more of an HTML guy and was thinking i had to do some PHP stuff... but when realizing it's a mix, i just threw in the raw HTML and it worked.