• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

3 Column Footer Alignment – Float Issue

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › 3 Column Footer Alignment – Float Issue

This topic is: resolved

Tagged: 3 column footer, float, horizontal widgets

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 4 months ago by cehwitham.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 22, 2013 at 6:50 am #22211
    cvillelady
    Member

    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 #22222
    cehwitham
    Member

    For 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 #22453
    cvillelady
    Member

    Hi,

    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 #22673
    cvillelady
    Member

    I 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 #22790
    cehwitham
    Member

    Code looks good. Glad you found the problematic widget.


    Twitter: cehwitham Web: cehwitham.com

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble