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.
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.
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:
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>
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
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
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
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.
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.
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') . '">'
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?
Bookmarks