Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / placing footer outside of mainwrapper

placing footer outside of mainwrapper

Views: 710

Results 1 to 3 of 3
29 Jan 2012, 9:11 PM
#1
gotduhka avatar

gotduhka

New Zenner

Join Date:
Jan 2012
Posts:
9
Plugin Contributions:
0

placing footer outside of mainwrapper

I need to place the copyright info and ip address at the bottom of my mainwrapper. I tried closing the div at the top of tpl_footer.php but that just makes the whole footer disappear. Any suggestions?

29 Jan 2012, 11:18 PM
#2
gotduhka avatar

gotduhka

New Zenner

Join Date:
Jan 2012
Posts:
9
Plugin Contributions:
0

Re: placing footer outside of mainwrapper

Ok I figured it out on my own, I was trying to just close the mainwrapper div in the top of tpl_footer but then in order to get it to work I had to make a new rule:

.footerbottom{
width: 100%;
margin: auto;
min-height: 50px;
}

So basically I added this to the top of tpl_bottom:

</div> <div class="footerbottom">

You don't want to close the div at the bottom because another php file handles than as it would have to close the div for the wrapper anyways. Hope this helps some other folks

30 Jan 2012, 4:48 AM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: placing footer outside of mainwrapper

The best file to edit would be /includes/templates/your_template/common/tpl_main_page.php. Move the mainWrapper </div> from its current location to where you want it.