Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 80
  1. #11
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    I am trying to do the same thing - can you explain what you did to change the link?

    Thanks

  2. #12
    Join Date
    Jul 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    I'm also trying to figure this out. My homepage URL is different from my store URL. I would also like when people click on the logo at the top that they get sent to my main URL. How do I do this?

    While I like Zen Cart so far, I don't understand why these things have to be so complicated. I wish it were easier.

  3. #13
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: How do I change link to home?

    HTMLGoddess,

    Changing it is straight html anchor code

    Copy of tpl_header.php for your template

    https://www.zen-cart.com/tutorials/index.php?article=36

    Find this and replace with your href:
    Code:
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    To:
    Code:
    <div id="logo"><?php echo '<a href="http://www.your_domain.com"> ' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    Zen-Venom Get Bitten

  4. #14
    Join Date
    Sep 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    I'm new to Zen Cart. I've found solutions to most of my questions - there is some fantastic help here. But now I'm stuck. I would like to change the home link from www.mydomain.com/zencart to www.mydomain.com

    I've followed the suggestions to edit the tpl_header.php file and I've succeeded to change the link on my banner logo but I would also like to change the Home link in the header and footer of my store.

    Also, while I'm at it, I'd like to add a link to the header - how do I do that?

    Regards, Andrew

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: How do I change link to home?

    andrewg,

    Where is your site??
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Sep 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    kobra, it's www.gyopar.com/store

  7. #17
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  8. #18
    Join Date
    Sep 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    Hi Kim.

    Thanks for the link but this deals with moving the shop to a different directory.

    I am happy with the location of my shop. All I want to do is change the "Home" text link at the top and bottom of my main shop page from www.gyopar.com/store to www.gyopar.com

    Andrew

  9. #19
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How do I change link to home?

    Kobra's advice in post 13 and ccaines' description in post 7 will both do what you want.

    You will have to adapt the code a bit to apply it to the footer.

    Essentially, you just need to change

    HTTP_SERVER . DIR_WS_CATALOG

    to

    HTTP_SERVER
    Last edited by gjh42; 3 Sep 2008 at 05:45 AM.

  10. #20
    Join Date
    Nov 2008
    Location
    Massachusetts
    Posts
    163
    Plugin Contributions
    0

    Default Re: How do I change link to home?

    After reading through this post and many others, I achieved what I wanted. Here's a summary so it's all in one place:

    What I wanted:
    "Home" in navigation bar, footer and breadcrumbs to point to www.mysite.com, not to www.mysite.com/store

    Compromise:
    I changed it for navigation bar and footer, but you can't change it in breadcrumbs without editing core files. So instead, I removed the 'home' link from breadcrumbs.

    How to do it:
    (Assumes you are familiar with the overrides system!)

    Make copies of these files for editing:
    includes/templates/template_default/common/tpl_header
    includes/templates/template_default/common/tpl_footer
    (or if you've already edited them get them from your custom overrides folder)

    In both files, change this:
    . HTTP_SERVER . DIR_WS_CATALOG .
    to this:
    . HTTP_SERVER .
    (pay attention to the dots!)
    There is only one instance in tpl_footer; there are two in tpl_header.

    Upload the edited files to your custom overrides folder.
    That takes care of navigation bar and footer.

    Now, to remove 'home' from the breadcrumbs:
    Go here:
    http://www.zen-cart.com/forum/showthread.php?t=35299
    and follow the instruction in Post #8.
    NOTE that when he says upload the file to the "overrides" folder, he means that literally. There is already a folder there named "overrides". You are to put the edited file "init_add_crumbs.php" into the directory "includes/init_includes/overrides".

 

 
Page 2 of 8 FirstFirst 1234 ... 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