In this tutorial, you will learn how and receive easy copy/paste codes to help you widgetize the footer or copyright area of a theme that runs on the Genesis framework sold by StudioPress.com
[wptabs mode=”vertical”]
[wptabtitle] Tutorial[/wptabtitle] [wptabcontent][ss3vdo file=”genesis/widgetizing-genesis-footer.mp4″][/wptabcontent]
[wptabtitle] Code snippets[/wptabtitle] [wptabcontent]
To remove the default Genesis footer
/* Removes original footer */
remove_action( 'genesis_footer', 'genesis_do_footer' );
To add or register your widget
// Register footer widgets
$footer_arg = array(
'name' => 'Copyright footer',
'id' => 'copyright-footer'
);
register_sidebar( $footer_arg );
To add the footer back as a widget
// Adds back our own footer
add_action( 'genesis_footer', 'custom_genesis_do_footer' );
function custom_genesis_do_footer() {
?>
<?php dynamic_sidebar( 'Copyright footer' ); ?>
<?php }
[/wptabcontent] [/wptabs]