Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    66
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

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

    includes/templates/YOUR_TEMPLATE/common/tpl_header.php


    find:
    Code:
    <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

    Code:
    <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 !

  3. #3
    Join Date
    Aug 2006
    Posts
    66
    Plugin Contributions
    0

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

    cool.

    thanx mate

  4. #4

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

    Below is the code update for version 1.3.8a.

    Replace

    Code:
    <?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

    Code:
    <?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"' ); ?>

  5. #5
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

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

    Quote Originally Posted by malberta View Post
    Below is the code update for version 1.3.8a.

    Replace

    Code:
    <?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

    Code:
    <?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.

  6. #6
    Join Date
    Dec 2008
    Posts
    10
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. How to get rid of main logo image link in the header bar area?
    By aaronjmorgan in forum General Questions
    Replies: 2
    Last Post: 7 May 2014, 02:46 AM
  2. how can I remove the logo "Computer store the.." from the header and put my own.
    By fkalanda in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jul 2013, 09:23 PM
  3. How do I remove the link from my logo?
    By flopez01 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jan 2010, 08:03 PM
  4. How can i remove the categories from the main page?
    By boinkit in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Feb 2008, 11:19 AM
  5. Replies: 2
    Last Post: 12 Sep 2007, 05:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg