Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2011
    Posts
    9
    Plugin Contributions
    0

    Default 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
    PHP Code:
    <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    in the tpl.header.php file. I'm a newb and so I cannot figure out how.
    Thx in advance.

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

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

  3. #3
    Join Date
    Aug 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Logo.gif link change

    Quote Originally Posted by gaurav10feb View Post
    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:
    PHP Code:
    <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_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    regards,
    zuzer

  4. #4
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Logo.gif link change

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

 

 

Similar Threads

  1. Change logo from .gif to jpeg
    By maxy007 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Feb 2011, 08:40 AM
  2. Home Link image (logo.gif)
    By ThomasT in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jul 2010, 09:02 PM
  3. Change URL of logo.gif?
    By kirkbross in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Feb 2010, 12:36 AM
  4. Can't Change logo.gif
    By cmes in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 10 Feb 2008, 12:30 AM
  5. Adding links to header menu--Logo.gif link
    By Dizzie in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Dec 2006, 01:32 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