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...
Views: 1,863
New Zenner
What file needs to be edited to link the logo in the main header to another URL?
thanks...
Black Belt
A copy of includes/templates/template_default/common/tpl_header.php - edit it and place it in your template override folder
New Zenner
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
Black Belt
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)
New Zenner
<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)kobra:
Your testing this old guys memory again!!!
Try this:
Took out the single quotes. Works like a charm. Thank you very much:D
Fields marked required must be completed.
Tell staff why this post should be reviewed.