Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    57
    Plugin Contributions
    0

    Default 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, 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, 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 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!

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Oct 2005
    Posts
    57
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. Adding links to the main (top) nav
    By ktomas in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jul 2009, 09:52 PM
  2. Adding a top nav bar
    By YZ250 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Mar 2009, 12:52 PM
  3. Remove 'Logout' and 'My Account' link from top nav
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jun 2008, 03:02 PM
  4. Adding a link to the top of the page
    By PaulRiedel in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Aug 2007, 06:56 PM
  5. Adding an external link to the Header navigation
    By plowe1 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 May 2006, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg