Page 1 of 8 123 ... LastLast
Results 1 to 10 of 80
  1. #1
    Join Date
    Jun 2005
    Posts
    19
    Plugin Contributions
    0

    Default How do I change link to home?

    I know this may sound like a simple question. I have looked through every option in the admin but I can't find a way to change the main url link. I originally installed zen cart in a sub directory because I planned to add other features in the root directory. Now I have my "zen-like" pages and I need to change the "home" link so the user can navigate back to those pages. Does anyone have a quick answer?

    Thank you in advance.

  2. #2
    Join Date
    Feb 2007
    Posts
    153
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    Hi, ccaines ...
    If I'm understanding what it is you're looking for, isn't that URL sepcified in the define for HTTP_SERVER in your configure.php ? At least that's where I assumed it comes from.

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I change link to home?

    Quote Originally Posted by ccaines View Post
    I know this may sound like a simple question. I have looked through every option in the admin but I can't find a way to change the main url link. I originally installed zen cart in a sub directory because I planned to add other features in the root directory. Now I have my "zen-like" pages and I need to change the "home" link so the user can navigate back to those pages. Does anyone have a quick answer?

    Thank you in advance.
    includes/languages/english/YOUR_TEMPLATE/header.php

    find:

    define('HEADER_TITLE_CATALOG', 'Home');

    Change the highlighted portion.

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I change link to home?

    Quote Originally Posted by clydejones View Post
    includes/languages/english/YOUR_TEMPLATE/header.php

    find:

    define('HEADER_TITLE_CATALOG', 'Home');

    Change the highlighted portion.
    Sorry, I just realized I didn't answer your question.

    You can add additional links to those pages by including them in:

    includes/templates/YOUR_TEMPLATE/common/tpl_header.php

  5. #5
    Join Date
    Jun 2005
    Posts
    19
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    I only need to change the "Home" link from http://www.couldb.com/yankeemusic to http://www.couldb.com,

  6. #6
    Join Date
    Jun 2005
    Posts
    19
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    Quote Originally Posted by inovermyhead View Post
    Hi, ccaines ...
    If I'm understanding what it is you're looking for, isn't that URL sepcified in the define for HTTP_SERVER in your configure.php ? At least that's where I assumed it comes from.
    Ah yes. I tried it. Thanks for the tip. Unfortunately, any modification the the definition here

    from

    define('DIR_WS_CATALOG', '/yankeemusic/');

    to

    define('DIR_WS_CATALOG', '/');

    effects all the defined variables in configure.php and will change the path to my template, css, images and who knows what else. Sucks for me. I think I may have to change the variable into a constant whenever DIR_WS_CATALOG is used. What do you think?

  7. #7
    Join Date
    Jun 2005
    Posts
    19
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    I found the perfect solution.

    Change the header title in includes/languages/english/YOUR TEMPLATE/header.php (i.e define('HEADER_TITLE_CATALOG', 'your new header title');)

    Add a new header title (i.e define('HEADER_TITLE_HOME_PAGE', 'Home');) to replace the modified header title.

    Add a new link to includes/templates/YOUR TEMPLATE/common/tpl_header.php (i.e. <li><?php echo '<a href="' . HTTP_SERVER . '">'; ?>&nbsp;<?php echo HEADER_TITLE_HOME_PAGE; ?></a></li>)

    This new link replaces the old "Home" header title with a new defined variable modified in header.php.

    Notice the href points to HTTP_SERVER.

    ZEN uses HTTP_SERVER and DIR_WS_CATALOG to create the link paths. This makes it easy for anyone to modify these links in an elegant way. Just add or remove these variables as needed.

    We love ZEN.

  8. #8
    Join Date
    May 2008
    Location
    Virginia Beach, Virginia, United States
    Posts
    52
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    I was reading through this because I was hoping it would help me and I can't figure it out.

    Right now my home link goes to www.example.com/store. i want to send it to the main page of my site (just www.example.com). I can't figure out how to do that.

    I know CSS and XHTML but any other language, I only have a min. knowledge of. If you someone could please break it down for me, I'd be eternally grateful.

  9. #9
    Join Date
    May 2008
    Location
    Virginia Beach, Virginia, United States
    Posts
    52
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    So I think I may have tried this suggestions right, but the only thing that happens is my "home" link changes to "HEADER_TITLE_HOME_PAGE" and it still links to the same place (www.example.com/store vs www.example.com).

    What am I doing wrong?

  10. #10
    Join Date
    May 2008
    Location
    Virginia Beach, Virginia, United States
    Posts
    52
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    i figured it out. thanks anyways!

 

 
Page 1 of 8 123 ... LastLast

Similar Threads

  1. How To ? change Home Link
    By BigJon in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2011, 05:00 PM
  2. How do I change the name of the home link on my main page.
    By MountainWilliam in forum General Questions
    Replies: 1
    Last Post: 20 Dec 2010, 03:17 AM
  3. How do I change link locations for Home in header?
    By newbie73 in forum Basic Configuration
    Replies: 15
    Last Post: 15 Feb 2008, 01:05 AM
  4. How To Change This Home Link???
    By AvieLF in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2006, 04:44 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR