Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Oct 2007
    Location
    Central Texas
    Posts
    11
    Plugin Contributions
    0

    help question Change the logo link?

    I'm hoping someone can help me out. I have an index.html page that is my main page which links to my Zen Cart stuff. I've noticed on the Zen Cart pages, the logo links to the Zen Cart main page.

    Where do I go to change this link so that it goes to my index.html page?

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

    Default Re: Change the logo link?

    In a copy of the tpl_header.php file located i the template common folder change this href
    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>
    Zen-Venom Get Bitten

  3. #3

    Default Re: Change the logo link?

    LoL, I logged in for asking almost the same question. I checked the code by kobra, but it looks like it's the same as in original tpl_header.php. Is it just me? Am I unable to see the difference?

    What I really would like to do is just the opposite of what Pomzie described. I noticed that, unlike Pomzie said, when I include an index.html in root, Zen Cart displays this index.html when clicked, but not the index.php. I would like it to display index.php instead. Any ideas?

    Thanks in advance! :)

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Change the logo link?

    What I really would like to do is just the opposite of what Pomzie described. I noticed that, unlike Pomzie said, when I include an index.html in root, Zen Cart displays this index.html when clicked, but not the index.php. I would like it to display index.php instead.
    This is standard - to link back to index.php and you should not have to change anything.

    Yes the code I posted is the default code and was provided for info as to where the href is located that would require changing if you did not want index.php referenced
    Zen-Venom Get Bitten

  5. #5

    Default Re: Change the logo link?

    Quote Originally Posted by kobra View Post
    This is standard - to link back to index.php and you should not have to change anything.

    Yes the code I posted is the default code and was provided for info as to where the href is located that would require changing if you did not want index.php referenced
    Thank you for the quick reply! I haven't modified any default file, but the logo opens the index.html, not index.php when clicked. The fact is, it opens http://localhost (I use my laptop to design the site), which catches index.html by default. Why I would like to do is to hardwire the logo link to index.php. All comments will be appreciated!

    Thanks again!

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Change the logo link?

    The fact is, it opens http://localhost (I use my laptop to design the site), which catches index.html by default.
    This still should not happen....

    I have never used a htaccess for a local but if they are used you might see what it has for access or remove it tempoarily.

    The default code is coded to make this happen and keeps the cart mobile so the you can move it betewwn directories and servers with out issues
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Oct 2007
    Location
    Central Texas
    Posts
    11
    Plugin Contributions
    0

    Default Re: Change the logo link?

    Thank you so much for the replies. I have a stupid question to ask though... do I remove all of the http info and just replace it with my main site's info?

    for example, would I then replace
    <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"> with <a href="http://www.pomzie.com"> and leave the rest of the string alone?

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

    Default Re: Change the logo link?

    for example, would I then replace
    <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '"> with <a href="http://www.pomzie.com"> and leave the rest of the string alone?
    You should not have to do this as . HTTP_SERVER . DIR_WS_CATALOG looks to the configure.php file and what is set there
    Zen-Venom Get Bitten

  9. #9

    Default Re: Change the logo link?

    Quote Originally Posted by kobra View Post
    You should not have to do this as . HTTP_SERVER . DIR_WS_CATALOG looks to the configure.php file and what is set there
    So, there is no way to add a specific link (not necessarily index.php; but say, http://www.google.com) to the logo?

    Thanks a lot for all the answers! :)

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Change the logo link?

    So, there is no way to add a specific link
    Did not state that at all. You op querried that your install on a local was rendering the index.html
    Quote Originally Posted by MemooMeM
    when I include an index.html in root, Zen Cart displays this index.html when clicked, but not the index.php. I would like it to display index.php instead.
    You might be more specific in what you want as I thought you were but now seem to want something different
    Zen-Venom Get Bitten

 

 
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. Logo.gif link change
    By zuzer in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2011, 12:46 AM
  3. How do I change the logo link?
    By wunderken in forum Basic Configuration
    Replies: 3
    Last Post: 18 Mar 2010, 06:43 AM
  4. 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
  5. Change the logo link?
    By atmh in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 11 Aug 2006, 04:23 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