Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] Footer 100% width (http://forum.bytesforall.com/showthread.php?t=9161)

cvan Aug 25, 2010 12:46 AM

[SOLVED] Footer 100% width
 
Is it possible for the footer to span the whole site?

I have looked in the forums and it seems that the only other solution that I have found is to make it a background image. But this solution will not work for what I am trying to achieve.

Thank you in advance for your response. :)

juggledad Aug 25, 2010 10:39 AM

Not without making some major changes to the code.
You have a window you view the site in

inside the window is the page body
which has a wrapper that can be less than the width of the page body
inside the wrapper is a container
and inside the container is the layout

the layout is a table with three rows
the header
the middle and
the footer

so if you want the footer to span the page width (or window width) and the you have margins, you will have to move the footer out of the table. The code is in footer.php - you may have to do this each time you upgrade the theme.

cvan Aug 25, 2010 01:56 PM

When I move the footer out of the table in the footer.php file, where do I put it? Will it still be in the same file or a completely different one? I'm playing around with it now. We'll see what I can do :)

Thank you for your help.

cvan Aug 25, 2010 03:43 PM

I figured it out thanks to you JuggleDad!

This is the placement of code in the footer.php file:

Code:

<!-- / Footer -->

</tr>
</table><!-- / layout -->
 
</div><!-- / container -->
</div><!-- / wrapper -->

<?php bfa_html_inserts($bfa_ata['html_inserts_body_bottom']); ?>

<div style="background:url(/wp-content/themes/atahualpa/images/footer2.png) repeat-x;border-top:solid 0px transparent;padding:100px 1524px 200px 805px;" >
<p>
    <?php echo bfa_footer($bfa_ata['footer_style_content']); ?>
    </p>
    <?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
    <p>
    <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
    </p>
    <?php } ?>

    <?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
    <!--
    <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
    -->
    <?php } ?>

    <?php wp_footer(); ?>
</div>
</body>
</html>

Thank you for your help!! :)


All times are GMT -6. The time now is 03:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.