Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default header.php and tpl header image remover

    i know this has to be easy but i am missing something somewhere.

    i was removeing the logo.gif and the place holder for that image still shows up. ive gone to tpl_header and tried to comment out the line but the page just shoows the comment out lines i place in. ive tried //, # and /* */.

    exp.

    tpl_header

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


    also tried it with this line <div id="logoWrapper">

    i have the tpl files in my templete/common location so to not worry about the next upgrade (the same with all my mods)

    you can see what i am talking (or typing) about here.

    http://www.halloweenspace.com/index.php

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: header.php and tpl header image remover

    Quote Originally Posted by d1rage5 View Post
    i know this has to be easy but i am missing something somewhere.

    i was removeing the logo.gif and the place holder for that image still shows up. ive gone to tpl_header and tried to comment out the line but the page just shoows the comment out lines i place in. ive tried //, # and /* */.

    exp.

    tpl_header

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


    also tried it with this line <div id="logoWrapper">

    i have the tpl files in my templete/common location so to not worry about the next upgrade (the same with all my mods)

    you can see what i am talking (or typing) about here.

    http://www.halloweenspace.com/index.php
    check this article in the tutorials/FAQ section

    www.zen-cart.com/tutorials/index.php?article=126

  3. #3
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default Re: header.php and tpl header image remover

    Quote Originally Posted by clydejones View Post
    check this article in the tutorials/FAQ section

    www.zen-cart.com/tutorials/index.php?article=126
    Thats sort of it. if i do that correct comment info it will get rid of everything including the header_bg that is the files on the right that would take up the entire top section.

    when i remove logo.gif from the following line in header.php the place holder shows up.

    // added defines for header alt and text
    define('HEADER_ALT_TEXT', '');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', '');

    So what has to be commented out to just remove the one place holder?

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: header.php and tpl header image remover

    You don't comment out DEFINES - just remove the text descriptions between the set of single quotes:-

    define('HEADER_LOGO_IMAGE', 'logo.gif');

    becomes:-

    define('HEADER_LOGO_IMAGE', '');

  5. #5
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default Re: header.php and tpl header image remover

    Figured it out.

    Had to remove some text

    (HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images').

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

    removed this line and it worked.

    if you commentout the logo line it seems that it will revert back to the common templete and i assume it sees this as not complete or you get info from somewhere else.

    the above was a little easer.

    i just made a copy of the file and names it with old and the date just in case i need to figure out what i did laster on or i could have just commented out what i did. bot ways work for me.

 

 

Similar Threads

  1. v151 Add image to header.tpl file
    By sports guy in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Nov 2012, 09:45 PM
  2. php code question...placement tpl header file
    By bwhitmire in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Sep 2008, 03:56 PM
  3. tpl header
    By Berserker in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 12 Apr 2007, 03:13 PM
  4. Categorie Images in header.tpl
    By bmac in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jun 2006, 05:15 PM

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