Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2007
    Posts
    20
    Plugin Contributions
    0

    Default How To Put A Link On My Logo Image In Header?

    Hi,

    I would like to put a link toward my the index page on the image of my logo that is in the header.

    Could some one tell me what code do I have to add to my style sheet?

    Thank you for your help.

    Chris.

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

    Default Re: How To Put A Link On My Logo Image In Header?

    You will need to edit a copy of the tpl_header.php file for your template and this is what is there for the current link:
    Code:
      <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>
    And you need to replace the highlighted href with yours and adjust the alt values:
    Code:
    <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
    Join Date
    Jul 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: How To Put A Link On My Logo Image In Header?

    Hi Kobra,

    I tried the above but getting a syntax error. I want to change the link for my logo within zc to go external. I get this error

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

    what am I doing wrong..I am putting www.sitename.com where the red is!

    thanks

  4. #4
    Join Date
    Jul 2007
    Posts
    21
    Plugin Contributions
    0

    help question Re: How To Put A Link On My Logo Image In Header?

    Kobra...I figured out that what I was doing wrong. The logo link is still within zc..how do I or what else do I need to change to make the link go external outside the shopping cart. ex: www.website.com it is trying to go www.website.com/zc instead.

    thanks

  5. #5
    Join Date
    Aug 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: How To Put A Link On My Logo Image In Header?

    Thanks Kobra for your reply.

    But I don t know what I can use to replace the highlightened section and what is alt values?

    Thanks for giving me more details.

  6. #6
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: How To Put A Link On My Logo Image In Header?

    I was trying to do this as well, I use a domain mask and want my logo link to point to the mask and not to the masked domain, but if I put in an address it does as pgcotton says it just adds the address I entered to the masked address.

  7. #7
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: How To Put A Link On My Logo Image In Header?

    Found what I needed in another thread hope this helps, you replace
    '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'

    with

    '<a href="' . ('www.yourdomain.com') . '">'

  8. #8
    Join Date
    Jul 2007
    Posts
    21
    Plugin Contributions
    0

    help question Re: How To Put A Link On My Logo Image In Header?

    Hi and thanks..but I am still getting the same result! In the /commom/tpl_header.php file I updated to reflect

    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="'.('www.mydomain.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>

    What am I doing wrong?

 

 

Similar Threads

  1. How to get rid of main logo image link in the header bar area?
    By aaronjmorgan in forum General Questions
    Replies: 2
    Last Post: 7 May 2014, 02:46 AM
  2. How to put a link in an additionnal sidebox with a logo
    By chrismonroe in forum Addon Sideboxes
    Replies: 19
    Last Post: 21 Sep 2008, 11:17 PM
  3. How to put a link on the whole logo image surface toward the starting page
    By chrismonroe in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Dec 2007, 07:58 PM
  4. How to put link in a sidebox with a logo
    By chrismonroe in forum Basic Configuration
    Replies: 0
    Last Post: 5 Nov 2007, 02:04 AM
  5. HELP!! How to put in my logo as the header?
    By dwarfs8 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Oct 2006, 04:42 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