Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1189 from JPOak/update-footer
Browse files Browse the repository at this point in the history
Fix footer container.  #1180
  • Loading branch information
colin-marshall authored Jan 18, 2018
2 parents 6c60543 + 082ad20 commit 8db9325
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
14 changes: 8 additions & 6 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@
*/
?>

<div class="footer-container">
<footer class="footer">
<?php dynamic_sidebar( 'footer-widgets' ); ?>
</footer>
</div>
<footer class="footer">
<div class="footer-container">
<div class="footer-grid">
<?php dynamic_sidebar( 'footer-widgets' ); ?>
</div>
</div>
</footer>

<?php if ( get_theme_mod( 'wpt_mobile_menu_layout' ) === 'offcanvas' ) : ?>
</div><!-- Close off-canvas content -->
<?php endif; ?>

<?php wp_footer(); ?>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion library/widget-areas.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function foundationpress_sidebar_widgets() {
'id' => 'footer-widgets',
'name' => __( 'Footer widgets', 'foundationpress' ),
'description' => __( 'Drag widgets to this footer container', 'foundationpress' ),
'before_widget' => '<section id="%1$s" class="large-4 columns widget %2$s">',
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h6>',
'after_title' => '</h6>',
Expand Down
5 changes: 2 additions & 3 deletions src/assets/scss/modules/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
.footer-container {
margin: 0 auto;
@include xy-grid-container;
border-top: 1px solid $medium-gray;
margin-top: rem-calc(60);
}

.footer {
@include xy-grid-container;
.footer-grid {
@include xy-grid;
padding: rem-calc(30) 0;

Expand Down

0 comments on commit 8db9325

Please sign in to comment.