Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    339
    Plugin Contributions
    0

    Have a Drink removing HeaderWrapper?

    Happy New Year all Zenners,

    A new question for the New Year-My site is located at http://30408.vws.magma.ca/TTEZENCART.
    What I want to do is get rid of the white line below the logoHeader and the NavMain. According to the page source it should be the HeaderWrapper. I have tried everything other than building a new template to get this done. Nothing seems to work. Removing the tpl_header.php file doesn't work at all, it just doesn't do anything. My site is still under construction and would like it up and running on my main site within the next three weeks.
    Any suggestions would be greatly appreciated.
    Bob

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: removing HeaderWrapper?

    Firstly "removing tpl_header" is a big NO NO... The core files should only be "tampered with" if you have sufficient php skill and a good understanding of the zencart schema.

    The while space is probably a result of the following in tpl_header.php

    HTML Code:
    <br class="clearBoth" />
    ... between the BRANDING display and the NAVIGATION display.

    There are a couple of instances of <br class="clearBoth" />, so you need to choose the right one, but do NOT delete the line... just comment it out:-

    HTML Code:
    <!-- <br class="clearBoth" /> -->
    (If you comment out the wrong one, simply remove the comment tags and try the next one.)
    20 years a Zencart User

  3. #3
    Join Date
    Nov 2009
    Posts
    339
    Plugin Contributions
    0

    Default Re: removing HeaderWrapper?

    Thank you for the fix. It worked first time. Just a note, I didn't delete the header file, I didn't explain myself right.
    Thanks very very much for your help.
    Happy New Year,
    Bob

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: removing HeaderWrapper?

    Good stuff Bob...

    The BR that you commented out is there for a reason - it helps separate the header from the banner ad (if you ever decide to use that position for banners).

    So, remember that you have made the edit because later - if you invoke a banner under the header, you may need to re-instate that BR.

    When I comment out bits of code or HTML, I always put an "identifier" in the comment tags, so I know that the edits are mine...

    HTML Code:
    <!-- GP EDIT BEGIN <br class="clearBoth" /> GP EDIT END -->
    Where GP are my initials.

    Later, if I need to find my own edits, I just use admin>>>tools>>>developer toolkit to find instances of GP EDIT BEGIN
    20 years a Zencart User

 

 

Similar Threads

  1. Need help headerwrapper
    By giftsandwhatnot in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Oct 2011, 07:38 PM
  2. #headerWrapper
    By aajc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:48 AM
  3. Lost the HeaderWrapper
    By bluealice in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Dec 2008, 03:19 PM
  4. headerWrapper too big
    By LizzyB in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Feb 2008, 11:29 AM
  5. Modifing the headerwrapper.
    By philip24 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Jan 2008, 06:58 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