-
-
Save cre8tivediva/0662c022ac7c9226873b0f3cbfeaf6b7 to your computer and use it in GitHub Desktop.
Academy Pro - Add Genesis Footer Widgets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add Two Column Footer Widgets to Academy Pro Genesis Child Theme | |
---------------------------------------------------------------------------------------------------- */ | |
.footer-cta { | |
margin-bottom: 40px; | |
} | |
.footer-widgets .widget-title { | |
font-size: 36px; | |
font-size: 3.6rem; | |
} | |
.footer-widgets-1, | |
.footer-widgets-2 { | |
width: 45%; | |
} | |
.footer-widgets-1 { | |
margin-right: 40px; | |
margin-right: 4rem; | |
} | |
.footer-widgets-1 { | |
float: left; | |
} | |
.footer-widgets-2 { | |
float: right; | |
} | |
@media only screen and (max-width: 768px) { | |
.footer-widgets-1, | |
.footer-widgets-2 { | |
float: none; | |
padding: 0 0 15px; | |
width: 100%; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Add theme support for 2-column footer widgets | |
add_theme_support( 'genesis-footer-widgets', 2 ); | |
//* Reposition Footer Widgets Below the Footer CTA Widgets but Before Site Footer | |
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); | |
add_action( 'genesis_before_footer', 'genesis_footer_widget_areas', 15 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment