Community Forums › Forums › Archived Forums › Design Tips and Tricks › 3 Column Footer Alignment – Float Issue
Tagged: 3 column footer, float, horizontal widgets
- This topic has 4 replies, 2 voices, and was last updated 11 years, 9 months ago by cehwitham.
-
AuthorPosts
-
February 22, 2013 at 6:50 am #22211cvilleladyMember
Hi,
I've added a 3 column footer and can't get them to align horizontally. I have 6 floated boxes right above the footer and tried to follow the same method that I used to get these aligned. I've tried altering code in both the footer and the .home-cta-boxes area, but can't get it to work.
Site: http://lauralynnstudio.info/sarahh/
Any advice you can provide would be greatly appreciated.
February 22, 2013 at 8:16 am #22222cehwithamMemberFor some reason .bottom-col2 is outputting inside of .bottom-col1 rather than after it.
Also you have a clear:right style of .bottom-col1 that will prevent anything from being floated next to it.
Are you using the standard footer widgets output or have you modified it in some way?
Twitter: cehwitham Web: cehwitham.com
February 23, 2013 at 3:48 pm #22453cvilleladyMemberHi,
Thanks for responding to my question. I removed the clear:right for .bottom-col1. I'm not sure if I did something wrong within the functions.php file. Hopefully the code below is OK to post and it will show up.
In the functions.php file, I added the following code for the footer:
genesis_register_sidebar(array(
'name'=>'Footer One',
'description' => 'This is the first footer column.',
'before_title'=>'<h4 class="footertitle">','after_title'=>'</h4>'
));genesis_register_sidebar(array(
'name'=>'Footer Two',
'description' => 'This is the second footer column.',
'before_title'=>'<h4 class="footertitle">','after_title'=>'</h4>'
));genesis_register_sidebar(array(
'name'=>'Footer Three',
'description' => 'This is the third footer column.',
'before_title'=>'<h4 class="footertitle">','after_title'=>'</h4>'
));
/** Customize the entire footer */
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'custom_footer' );
function custom_footer() {
?>
<div class="footer-bottom-boxes">
<div class="bottom-widgetized" id="bottom-col1">
<?php if (!dynamic_sidebar('Footer One') ) : ?>
<h4><?php _e("Footer Left Widget", 'genesis'); ?></h4>
<p><?php _e("Footer Area for Customer Service Links.", 'genesis'); ?></p>
<?php endif; ?>
</div><!-- end .bottom-col1 -->
<div class="bottom-widgetized" id="bottom-col2">
<?php if (!dynamic_sidebar('Footer Two') ) : ?>
<h4><?php _e("Footer Middle Widget", 'genesis'); ?></h4>
<p><?php _e("Footer Area for Customer Service Links.", 'genesis'); ?></p>
<?php endif; ?>
</div><!-- end .bottom-col2 -->
<div class="bottom-widgetized" id="bottom-col3">
<?php if (!dynamic_sidebar('Footer Three') ) : ?>
<h4><?php _e("Footer Right Widget", 'genesis'); ?></h4>
<p><?php _e("Footer Area for Customer Service Links.", 'genesis'); ?></p>
<?php endif; ?>
</div><!-- end .bottom-col3 -->
</div><!-- end #bottom-widgetized -->
</div><!--end #footer-bottom-boxes -->
<?php
}I had also tried adding a clear div within the code above because I noticed that the .bottom-col1 was expanding the entire length of the content. I didn't see a change so at that point I tried different options using CSS. I wasn't sure if I did something wrong in the code above, so I also tried just adding one custom dynamic sidebar that contained 3 widgets and then using CSS to horizontally align them. It produced the same problem.
If I remove the entries for registering the sidebar in functions.php, they will line up horizontally.
February 25, 2013 at 6:27 am #22673cvilleladyMemberI found out that the Link Widget by Pankaj Biswas was causing the issue with the widgets not lining up. After removing this from the footer widgets, it worked.
Thanks for your help.
February 25, 2013 at 5:27 pm #22790cehwithamMember -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.