Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / I want to move Home / Log in Buttons

I want to move Home / Log in Buttons

Locked

Views: 2,441

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
4 Sep 2007, 8:04 PM
#1
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

I want to move Home / Log in Buttons

On the defualt template, home and log in are at the top in a green box, i want to move that box below the defualt banner image which is named header_bg.jpg

How do i do this.

4 Sep 2007, 8:15 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: I want to move Home / Log in Buttons

You actually don't use your stylesheet for this.
In /includes/templates/your_template/common/tpl_header.php, find the section marked with <!--bof navigation display--> and <!--eof navigation display-->. Move that to just below the <!--eof branding display--> section.

Then you can fine-tune the appearance/position in your stylesheet.

4 Sep 2007, 8:48 PM
#3
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: I want to move Home / Log in Buttons

gjh42:

You actually don't use your stylesheet for this.
In /includes/templates/your_template/common/tpl_header.php, find the section marked with <!--bof navigation display--> and <!--eof navigation display-->. Move that to just below the <!--eof branding display--> section.

Then you can fine-tune the appearance/position in your stylesheet.

nvm found it :)

4 Sep 2007, 8:56 PM
#4
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: I want to move Home / Log in Buttons

gjh42:

You actually don't use your stylesheet for this.
In /includes/templates/your_template/common/tpl_header.php, find the section marked with <!--bof navigation display--> and <!--eof navigation display-->. Move that to just below the <!--eof branding display--> section.

Then you can fine-tune the appearance/position in your stylesheet.

lizar5-:

nvm found it :)
actually i lie, theres still a white gap between what i just moved and my banner image, anyone know how to get rid of?

4 Sep 2007, 9:02 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: I want to move Home / Log in Buttons

The standard fix for this is to find the <br class="clearBoth" /> between the sections and change it to <div class="clearBoth"></div> .

If that doesn't work, post a link to your site so we can diagnose it.

4 Sep 2007, 9:14 PM
#6
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: I want to move Home / Log in Buttons

gjh42:

The standard fix for this is to find the <br class="clearBoth" /> between the sections and change it to <div class="clearBoth"></div> .

If that doesn't work, post a link to your site so we can diagnose it.

That only added a white gap underneath in my home/login banner

my site:

d2equip.com

4 Sep 2007, 9:25 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: I want to move Home / Log in Buttons

Your first problem is that your logo image is 5px taller than the defined logo dimension. This accounts for half of the current space.

4 Sep 2007, 9:53 PM
#8
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: I want to move Home / Log in Buttons

gjh42:

Your first problem is that your logo image is 5px taller than the defined logo dimension. This accounts for half of the current space.

/includes/languages/english/classic/header.php

i edited my height there, however nothing changed, i also trimed the size of the logo and uploaded it, nothing

5 Sep 2007, 4:50 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: I want to move Home / Log in Buttons

I'm not sure what you did the first time you tried this, but I just tested it on your site and confirmed that replacing the <br class="clearBoth" /> just before the <!--eof-branding display--> with <div class="clearBoth"></div> eliminates the space between logo and navbar.

5 Sep 2007, 11:14 AM
#10
lizar5 avatar

lizar5

Zen Follower

Join Date:
Sep 2007
Posts:
116
Plugin Contributions:
0

Re: I want to move Home / Log in Buttons

gjh42:

I'm not sure what you did the first time you tried this, but I just tested it on your site and confirmed that replacing the <br class="clearBoth" /> just before the <!--eof-branding display--> with <div class="clearBoth"></div> eliminates the space between logo and navbar.

got it, thanks a ton