Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Link logo in main header to another url

Link logo in main header to another url

Locked

Views: 1,863

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Mar 2007, 1:23 AM
#1
airtime avatar

airtime

New Zenner

Join Date:
Mar 2007
Posts:
51
Plugin Contributions:
0

Link logo in main header to another url

What file needs to be edited to link the logo in the main header to another URL?
thanks...

30 Mar 2007, 2:55 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Link logo in main header to another url

A copy of includes/templates/template_default/common/tpl_header.php - edit it and place it in your template override folder

30 Mar 2007, 3:16 AM
#3
airtime avatar

airtime

New Zenner

Join Date:
Mar 2007
Posts:
51
Plugin Contributions:
0

Re: Link logo in main header to another url

kobra:

A copy of includes/templates/template_default/common/tpl_header.php - edit it and place it in your template override folder

O.k. Thanks. Need a bit more guidance. I thought this would be a bit more obvious.

I believe something here is what needs to change.

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

If i want the logo to link to http://www.whatever-website.com what do I replace.
thanks.
Airtime

30 Mar 2007, 3:31 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Link logo in main header to another url

Your testing this old guys memory again!!!

Try this:

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

Now there is a set of single quotes inside the std http://... so if the above has a parse error try removing the set of single quotes??? or start without them and add back if it errors
(I know everything...I just can't remember it all)

30 Mar 2007, 4:48 AM
#5
airtime avatar

airtime

New Zenner

Join Date:
Mar 2007
Posts:
51
Plugin Contributions:
0

Re: Link logo in main header to another url

kobra:

Your testing this old guys memory again!!!

Try this:

<div id="logo"><?php echo '<a href="'http://www.whatever-website.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> ```Now there is a set of single quotes inside the std http://... so if the above has a parse error try removing the set of single quotes??? or start without them and add back if it errors > (I know everything...I just can't remember it all)

Took out the single quotes. Works like a charm. Thank you very much:D