Credits: Junior Atoms / Larry: http://cobaltapps.com/forum/forum/dynamik-skin-forums/tools-tips-other-skin-resources-aa/49313-fun-with-footer This removes the Genesis footer text, adds a single level menu, widget-area and automatic copyright to the footer. Be sure to add paragraphs to the Footer Text widget area, or else it won't pick up any styling. I added the icons to the footer menu with https://wordpress.org/plugins/menu-icons/.
/* Footer */
.site-footer i {
text-decoration: none;
}
.nav-footer-links {
font-family: 'Lato', sans-serif;
text-align: center;
}
.nav-footer-links li {
display: inline-block;
list-style-type: none;
margin: 0 10px 10px;
}
.footer-text {
margin-bottom: 10px;
}
.footer-copyright {}
//* Hook the Footer Links menu into the footer
add_action( 'genesis_footer', 'dynamik_footer_links', 8 );
function dynamik_footer_links() {
genesis_nav_menu( array(
'theme_location' => 'footer-links',
'depth' => 1,
) );
}
//* Hook the Footer Text widget-area into the footer
add_action( 'genesis_footer', 'dynamik_footer_text', 10 );
function dynamik_footer_text() {
genesis_widget_area( 'footer-text', array(
'before' => '<div class="footer-text">',
'after' => '</div>',
) );
}
//* Replace Genesis footer text with a copyright
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'dynamik_footer_copyright', 12 );
function dynamik_footer_copyright() { ?>
<div class="footer-copyright">
<p>© <?php echo date("Y"); echo " "; echo bloginfo('name'); ?></p>
</div>
<?php }
//* Register Footer Links menu
add_action( 'after_setup_theme', 'dynamik_register_footer_menu' );
function dynamik_register_footer_menu() {
register_nav_menu( 'footer-links', 'Footer Links' );
}
//* Register Footer Text widget-area
genesis_register_sidebar( array(
'id' => 'footer-text',
'name' => 'Footer Text',
) );