jdunhin
New member
- Joined
- Feb 27, 2013
- Messages
- 93
- Points
- 0
Want to remove the primary widget area on your frontpage. This code works for me.
This is for Theme Hybrid.
This is for Theme Hybrid.
Code:
add_filter( 'sidebars_widgets', 'disable_primary_widgets' );
function disable_primary_widgets( $sidebars_widgets ) {
if ( is_front_page() )
$sidebars_widgets['primary'] = false;
return $sidebars_widgets;
}
Last edited by a moderator: