Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created May 26, 2020 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndawood/aa02135dc8a2ccc38e94e0dc93867f60 to your computer and use it in GitHub Desktop.
Save ibndawood/aa02135dc8a2ccc38e94e0dc93867f60 to your computer and use it in GitHub Desktop.
Footer Default v1 - Add social menu below footer
<?php
/**
* Template for default v1
* @since 1.0.0
*/
?>
<footer class="site-footer site-footer__default style-v1">
<div class="footer-widgets border-bottom">
<?php if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) || is_active_sidebar( 'footer-3' ) || is_active_sidebar( 'footer-4' ) ) : ?>
<div class="container space-2">
<div class="row justify-content-md-between">
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
<div class="col-sm-4 col-lg-2 mb-lg-0">
<?php dynamic_sidebar( 'footer-1' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
<div class="col-sm-4 col-lg-2 mb-lg-0">
<?php dynamic_sidebar( 'footer-2' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
<div class="col-sm-4 col-lg-2 mb-lg-0">
<?php dynamic_sidebar( 'footer-3' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-4' ) ) : ?>
<div class="col-md-6 col-lg-4">
<?php dynamic_sidebar( 'footer-4' ); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>
<div class="container text-center space-1">
<?php front_footer_logo(); ?>
<?php front_footer_social_menu(); ?>
<p class="small text-muted mt-3"><?php front_copyright_text(); ?></p>
</div>
</footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment