Forums / Templates, Stylesheets, Page Layout / Can I remove the link from the main header logo?

Can I remove the link from the main header logo?

Locked

Views: 4,026

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Oct 2006, 10:35 PM
#1
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Can I remove the link from the main header logo?

How can I remove the link from my main logo image in the header?
When i click on it, it links to my main page.
I dont want it to :(

Cheers....Jaz

2 Oct 2006, 10:40 PM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Can I remove the link from the main header logo?

includes/templates/YOUR_TEMPLATE/common/tpl_header.php

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

and replace with

<div id="logo"><?php echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) ; ?></div>

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

2 Oct 2006, 10:44 PM
#3
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Can I remove the link from the main header logo?

cool.

thanx mate

7 Dec 2008, 6:44 PM
#4
malberta avatar

malberta

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

Re: Can I remove the link from the main header logo?

Below is the code update for version 1.3.8a.

Replace

<?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, '','', 'id="logo"' ) . '</a>'; ?>

with

<?php echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, '','', 'id="logo"' ); ?>
22 Dec 2008, 1:12 PM
#5
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Can I remove the link from the main header logo?

malberta:

Below is the code update for version 1.3.8a.

Replace

<?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, '','', 'id="logo"' ) . '</a>'; ?>
> 
> with
> 
> ```
<?php echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, '','', 'id="logo"' ); ?>

Using this piece of code, I found that it created a tiny space underneath the logo. However, using Ryk's bit of code above I had no issues, although I am running Zen 1.3.8a.

8 Jan 2009, 9:24 PM
#6
kostenlose avatar

kostenlose

Banned

Join Date:
Dec 2008
Posts:
11
Plugin Contributions:
0

Re: Can I remove the link from the main header logo?

Is there a way to customize the link that the main header image loads to? so instead of loading my main page, I want it to load a specific url.