Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Last active January 1, 2020 16:59
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 cre8tivediva/a00f1339547283c27aa965c77427d7ce to your computer and use it in GitHub Desktop.
Save cre8tivediva/a00f1339547283c27aa965c77427d7ce to your computer and use it in GitHub Desktop.
Essence Pro - Add 3 Footer Widgets Below Footer CTA
//* Add theme support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );
//* 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', 25 );
/* Add Three Column Footer Widgets to Essence 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: 31%;
float: left;
}
.footer-widgets-1,
.footer-widgets-2 {
margin-right: 40px;
margin-right: 4rem;
}
.footer-widgets-3 {
float: right;
width: 31%;
}
@media only screen and (max-width: 768px) {
.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3 {
float: none;
padding: 0 0 15px;
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment