Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Setting Footer to 100% width at the very bottom

Setting Footer to 100% width at the very bottom

Views: 1,755

Results 1 to 3 of 3
7 Jan 2011, 6:34 PM
#1
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Setting Footer to 100% width at the very bottom

-customizing starting with classic template.
-referring to the bottom green footer containing the "home" link.
-Zen Cart version 1.3.9h

Hi. I'm familiar with how to set a footer to span across 100% of the page using CSS. What I can't figure out is how to either create a DIV outside of the mainWrapper or just pop the footer that is there (see above) out of the mainWrapper so that it will expand to the width of the entire browser window. :dontgetit

Thanks for your help.

7 Jan 2011, 6:41 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Setting Footer to 100% width at the very bottom

In a copy for your template of tpl_main_page.php find this block of code and move the block to after the closing /div for the main wrapper

<?php
 /**
  * prepares and displays footer output
  *
  */
  if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_footer = true;
  }
  require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>
7 Jan 2011, 7:38 PM
#3
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: Setting Footer to 100% width at the very bottom

It worked!

Thanks, Kobra! :bigups: