Zen Cart Logo
Forums / General Questions / Header logo clickable to another site

Header logo clickable to another site

Locked

Views: 853

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Mar 2009, 10:59 PM
#1
monkeytastic avatar

monkeytastic

Zen Follower

Join Date:
Dec 2006
Posts:
141
Plugin Contributions:
0

Header logo clickable to another site

I want to change my header logo to have a clickable link to another site - how do I do this?

scratching my hair out here :(

28 Mar 2009, 4:27 AM
#2
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Header logo clickable to another site

Basically you need to open includes/templates/template_default/common/tpl_header.php

and find:

<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>

Change to:

<div id="logo"><?php echo '<a href="http://www.new_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>

save to includes/templates/your_template/common/tpl_header.php

29 Mar 2009, 11:09 AM
#3
monkeytastic avatar

monkeytastic

Zen Follower

Join Date:
Dec 2006
Posts:
141
Plugin Contributions:
0

Re: Header logo clickable to another site

Excellent - thank you :)