Forums / Templates, Stylesheets, Page Layout / Removing space between header and rest of page

Removing space between header and rest of page

Locked

Views: 4,566

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
1 Mar 2009, 1:40 AM
#1
jhbs avatar

jhbs

New Zenner

Join Date:
Feb 2009
Posts:
28
Plugin Contributions:
0

Removing space between header and rest of page

hi there, using 1.3.8 and i have a gap between where the header image ends and the start of categories and the main page.

I did remove the links under the menu but i think that is all gone now, if you have a look at jezh.nappyrash.net/whatevernext/

I just want to push the rest of the site towards the top basically

1 Mar 2009, 5:09 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Removing space between header and rest of page

<br class="clearBoth" />

Remove above from tpl.header.php in your current template

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

3 Mar 2009, 1:25 PM
#3
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Re: Removing space between header and rest of page

Ohhhh than you so much. I was looking to do this last week and gave up because I couldn't figure it out or find the reply.
Thanks!

3 Mar 2009, 1:30 PM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Removing space between header and rest of page

lj111970:

Ohhhh than you so much. I was looking to do this last week and gave up because I couldn't figure it out or find the reply.
Thanks!
Pleased to hear problem solved..
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

4 Mar 2009, 3:56 PM
#5
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

hi
I cant seem to find the tpl.header.php file. Ive looked high and low and cant seem to find it anywhere. I found lots of tpl files in this folder
/shop/includes/templates/template_default/templates

shop being my zencart directory

Any idea where i can find this please

cheers

4 Mar 2009, 4:08 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Removing space between header and rest of page

It's actually tpl_header.php, and it's in includes/templates/template_default/common

4 Mar 2009, 4:17 PM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Removing space between header and rest of page

Does also depend on whether you have custom template
which may have its own tpl_header.php file

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

4 Mar 2009, 6:45 PM
#8
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

Hmm thanks for that. I have got a includes/templates/MYTEMPLATE/common/tl_header.php
So i found the code and removed it but nothing happened. So i tried it on the default_template/common/tl_header.php and still no luck.

Any other ideas please

I also have another problem. For some reason when I refresh my sites home page sometimes the font size and template looses its format and increases in size. Sometimes i refresh the page 10 times to get back to its original format then randomly it will change again when i refresh it.

Any idea as to what the prob is

url is ravsappliances.com

cheers

4 Mar 2009, 7:14 PM
#9
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

Ok the problem mentioned above regarding the loss of format only happens in mozilla.

4 Mar 2009, 7:24 PM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Removing space between header and rest of page

Visited site/url to ascertain which is current template..
404 forbidden error received..
:unsure:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

4 Mar 2009, 7:40 PM
#11
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

Hi Sorry
its
ravsappliances.com/shop

do you know why it gives a error if you type in ravsappliances.com

4 Mar 2009, 7:58 PM
#12
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Re: Removing space between header and rest of page

Silly question but I have done it before so one never knows....did you upload the correct file to the corect folder?

abs007:

Hmm thanks for that. I have got a includes/templates/MYTEMPLATE/common/tl_header.php
So i found the code and removed it but nothing happened. So i tried it on the default_template/common/tl_header.php and still no luck.

Any other ideas please

I also have another problem. For some reason when I refresh my sites home page sometimes the font size and template looses its format and increases in size. Sometimes i refresh the page 10 times to get back to its original format then randomly it will change again when i refresh it.

Any idea as to what the prob is

url is ravsappliances.com

cheers

4 Mar 2009, 8:12 PM
#13
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

HI
Just double checked and it looks like i have got the right file just aint making any changes. i have 3 templates, 1 is the classic-2 is another one which i dont like and the 3rd one is the custom one which i work off- Ive changed them all just to make sure and it hasnt made a difference

5 Mar 2009, 3:26 PM
#15
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Removing space between header and rest of page

You have to know which <br class="clearBoth" /> to remove. It's the SECOND occurrence, I think.

And don't remove it - just COMMENT it out so that it's rendered inoperative, but stays in the code. Later, if you invoke banners, you may need to re-invoke it - then you just look for the COMMENT, eg:

<!-- DISABLED BY (your name, or some form of id method here) <br class="clearBoth" /> -->

20 years a Zencart User

5 Mar 2009, 4:51 PM
#16
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

HI
Thanks for the reply. I deleted the tag prior to knowing its better to do it by cancelling it out. so i have uploaded a new tpl_heade.php and cancelled out the 2nd tag.
it worked but only removed abou 2 px worth of the white gap area. i would like to remove the whole white gap if possible.

Do you mind having a look at ravsappliances.com/shop and have a look to to see if there is a solution

cheers

5 Mar 2009, 4:57 PM
#17
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Removing space between header and rest of page

Clear your browser cache and re-load the site.

20 years a Zencart User

5 Mar 2009, 5:08 PM
#18
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

Hi
i have cleared the cache and all is the same. Does it show up different on your browser. I still have about a 2cm gap under the logo and above the body which i would love to get rid of. I dont mind making the logo height larger if that would resolve it.

5 Mar 2009, 5:12 PM
#19
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Removing space between header and rest of page

When I load your page, I see the Category Tabs menu under the main logo...

Is this what you are referring to?

You can switch this off, you know...

20 years a Zencart User

5 Mar 2009, 6:07 PM
#20
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Removing space between header and rest of page

Yeh thats the area i want to get rid off. I dont want them links there and would be better to just keep the links on the sidebar or on the green border.Also the links under the category tabs which are placed in the green bar running horizontally-they are blue. If you have a look at the links towards the footer they are white. Is there any way i can change the links at the top to white