September 12

How To Widgetize The Footer For Genesis Framework

0  comments

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]


Tags

Genesis, StudioPress, theme, widgets


You may also like

Force cPanel Password Reset

Force cPanel Password Reset
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Get in touch

Name*
Email*
Message
0 of 350