Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Change the logo link?

    First up, I searched the forum, and came up with this as the best anwser to this questions:
    http://www.zen-cart.com/forum/showthread.php?t=33008

    Unfortunately, that doesn't exactly work for me (or I just am not clever enough to figure out how to apply that info to my specific application).

    The site is this:
    http://store.madhouseminis.com/

    and I want the logo in the upper left to link here:
    http://www.madhouseminis.com/
    or
    http://madhouseminis.com/

    it doesn't really matter, whichever is easier.

    The problem I am noticing, is that in the configure .php file, it's server relative linking, which wouldn't be a problem if the store was setup like this:
    http://madhouseminis.com/store
    because then I could just back down a level and everything would work. But seeing as how I am using a sub domain for the store, it doesn't work so slick.

    Basically, I need the store to link back to the home site. I would most like to use the logo, and ONLY the logo. in the breadcrumb bar (or whatever it's called) where it says 'Home' I want that to go to the home of the store (http://store.madhouseminis.com)

    Thanks for the help!

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

    Default Re: Change the logo link?

    Do not know what version as you did not state:

    Find in your includes/templates/your_template/common/tpl_header.php file

    Ver 1.3.x
    Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <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>
        <div id="taglineWrapper">
    Ver1.2.x
    Code:
                <td valign="middle" height="<?php echo HEADER_LOGO_HEIGHT; ?>" width="<?php echo HEADER_LOGO_WIDTH; ?>">
    <?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
                </td>
                <td align="center" valign="top">
    Where the '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' is add your url like:
    Code:
    '<a href="http://www.your_full_url.com">'
    Pay particular attention so as not to drop a required quote or period.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Change the logo link?

    Ah yes, very sorry.
    Version 1.3.x
    Thanks for the info, I'll check it out at work tomorrow.

  4. #4
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Change the logo link?

    I made the changes and it works perfectly.

    the change I made:
    Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="http://www.madhouseminis.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>
    I also decided to make the 'home' text button in the upper left (just above the logo) link to the main website as well, so I found out what class that was using the firefox tools and changed the correct stuff to this:

    Note: this code appears above the previous code in the tpl_header.php file.
    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="http://www.madhouseminis.com">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    And that's it, now my upper left corner on the store links to the main website, with the exception of the 'log in' button.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,175
    Plugin Contributions
    11

    Default Re: Change the logo link?

    One problem with your changes is that you've taken away the ability of the customer to return to the main page of the store. Not so bad on the logo but, I think your customers will get frustrated and leave when they have to go "off cart" and back on from the website homepage. Just getting a good run in with the Mini and you have to exit and get back on the freeway.

    Maybe keep the home to the cart home and add website next to it?

  6. #6
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Change the logo link?

    Quote Originally Posted by dbltoe
    One problem with your changes is that you've taken away the ability of the customer to return to the main page of the store. Not so bad on the logo but, I think your customers will get frustrated and leave when they have to go "off cart" and back on from the website homepage. Just getting a good run in with the Mini and you have to exit and get back on the freeway.

    Maybe keep the home to the cart home and add website next to it?
    Hmm...you do bring up a good point, but don't forget about the link to the home in the 'breadcrumb' tool bar thing, that still links to the home of the store.

    I suppose I should add another link there, but I'm not sure/where/how I would do that...

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,175
    Plugin Contributions
    11

    Default Re: Change the logo link?

    Unfortunately, you've de-linked the home on the main page so the customer might be confused. Also, which home is home?

    If you made
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="http://www.madhouseminis.com">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    into
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="http://www.store.madhouseminis.com">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <li><a href="http://www.madhouseminis.com">Website</a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    you might get what you want.

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

    Default Re: Change the logo link?

    To avoid confusion if you must use the "Home" link in the nav bar for your link to the other site you might try this: find /includes/languages/english/your_override_folder/header.php (if it is not there place a edited copy of the file there). Edit this line:
    Code:
    define('HEADER_TITLE_CATALOG', 'Home');
    And change to something like:
    Code:
    define('HEADER_TITLE_CATALOG', 'Main Site');
    This way, instead of stating "Home" it will specify your main site.
    Zen-Venom Get Bitten

  9. #9
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Change the logo link?

    Nice! Thanks guys!
    I'll work on it more at work tomorrow.

  10. #10
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Change the logo link?

    Alright, I made the change. I ended up adding a link in the upper corner as dbltoe suggested. Works great, thanks!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Where do I change the link in the logo?
    By westdh in forum General Questions
    Replies: 1
    Last Post: 27 Aug 2012, 12:17 AM
  2. How do I change the logo link?
    By wunderken in forum Basic Configuration
    Replies: 3
    Last Post: 18 Mar 2010, 06:43 AM
  3. how do i change the zen cart logo to my own logo
    By fitzpatrick models in forum Basic Configuration
    Replies: 1
    Last Post: 13 Dec 2007, 01:57 AM
  4. Change the logo link?
    By Pomzie in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 20 Oct 2007, 06:52 PM

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