alecwa
4/17/2015 - 9:40 PM

Remove Genesis Widgets fm Multiple Pages

Remove Genesis Widgets fm Multiple Pages

// Returns true when the Pages displayed is either post ID 42, or post_name "about-me", or post_title "Contact".
add_action( 'genesis_before', 'fun_display_footer_home' );
function fun_display_footer_home() {
if ( is_page(array(42, 'about-me', 'contact')) ){
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
remove_action('genesis_footer', 'genesis_do_footer');
remove_action('genesis_footer', 'genesis_footer_markup_open', 5);
remove_action('genesis_footer', 'genesis_footer_markup_close', 15);
}}