Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can't Center Footer?? Please Help!

Can't Center Footer?? Please Help!

Views: 683

Results 1 to 7 of 7
11 Aug 2015, 2:56 AM
#1
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Can't Center Footer?? Please Help!

Somehow the footer lines got shoved over to the far right on the shopping cart I'm working on: http://borumapublishing.com/llcraftpublications.com/library/index.php (Apologies in advance that it's an adult site.) Not sure how they got shifted, when the only thing I've been working on tonight was uninstalling and reinstalling the COWOA. Anyway, I'd like to center them again.

As odd as it sounds, the Scuro template doesn't seem to have a stylesheet_footer_menu.css file. I did find these lines in the stylesheet.css file:

#siteinfoLegal {margin:0 auto; padding: .5em 0 0; font-size: 0.9em; text-align:center; width:100%; line-height:normal; clear:both;}
#siteinfoLegal a {padding: 0 0.5em 0 0.5em;color: #fff;font-weight:bold;white-space: nowrap; }

But that says it's already centered. I did try changing text-align:center to text-align:left, but nothing changed, so I changed it back.

Can anyone please help? Thanks very much!!

11 Aug 2015, 5:29 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Can't Center Footer?? Please Help!

Wow have not seen a template using tables for quite some time
it appears that you have an empty table at the left of your information
Try deleting it - you will have to use the developers tool kit to locate the file it is in

<div id="footer-placement">
<div id="footer">
<table width="100%">
  <tr>
    <td  style="width: 235px">
    </td>
11 Aug 2015, 2:10 PM
#3
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Can't Center Footer?? Please Help!

Kobra:

The only file I was able to find that had <div id="footer-placement"> in it was the tpl_main_page.php page in the includes/templates/scuro/common folder. The code that follows it is:

<div id="footer-placement"> <?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'); ?> </div>

I really don't think that's what I need, but I don't know where else to look.

11 Aug 2015, 3:28 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: Can't Center Footer?? Please Help!

One way to fix it would be to add some margin-right to #footer in the stylesheet.

11 Aug 2015, 4:02 PM
#5
kobra avatar

kobra

Black Belt

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

Re: Can't Center Footer?? Please Help!

Where your info is contained is in

div id=navSuppWrapper

Which is default ZenCart code

footer-placement is not contained in out of the box ZenCart code

You might compare a stock tpl_main_page.php file to your templates

11 Aug 2015, 5:39 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,089
Plugin Contributions:
56

Re: Can't Center Footer?? Please Help!

Edit /includes/templates/scuro/css/stylesheet.css. Around line 837, find:

#footer {
    clear: both;
    float: right;
    font-family: verdana,arial,helvetica,sans-serif;
}

Change to (removing the float):

#footer {
    clear: both;
    font-family: verdana,arial,helvetica,sans-serif;
}
11 Aug 2015, 6:36 PM
#7
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Can't Center Footer?? Please Help!

I went with lat9's solution because it gave me a specific place to look. That worked PERFECTLY...thank you so much, everyone, for your help!!!