Forums / Templates, Stylesheets, Page Layout / Logo.gif link change

Logo.gif link change

Started by zuzer on 31 Aug 2011, 5:52 AM · Views: 1,069

Results 1 to 4 of 4
31 Aug 2011, 5:52 AM
#1
zuzer avatar

zuzer

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Logo.gif link change

I thought it would be simple but I can find no answer anywhere. I want the "logo.gif" in the header to point to a certain featured product (say - product ID #1 or just simply to the featured products page) and not to the root of the site.

shop.stru.cc
I'm using the classic template

I figured out I should change the line

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

in the tpl.header.php file. I'm a newb and so I cannot figure out how.
Thx in advance.

31 Aug 2011, 7:24 AM
#2
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: Logo.gif link change

use this

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . 'index.php?main_page=product_info&cPath=1&products_id=1'">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

Believe it or not But My existence is illusional

31 Aug 2011, 9:06 AM
#3
zuzer avatar

zuzer

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Re: Logo.gif link change

gaurav10feb:

use this

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . 'index.php?main_page=product_info&cPath=1&products_id=1'">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

it does not work. however, after several tries i managed to solve it:

<div id="logo"><?php echo '<a href="index.php?main_page=product_info&cPath=1&products_id=1">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

regards,
zuzer

31 Aug 2011, 11:46 PM
#4
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: Logo.gif link change

oops ...looks like i didnt delete http_server...sorry

Believe it or not But My existence is illusional