Hybrid 1.1 Wordpress Theme

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.

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:

Jack London

New member
Joined
Jul 9, 2012
Messages
386
Points
0
I used to design themes for my blog myself. Anyway, it's cool to know a new way from you.
 
Older threads
Replies
5
Views
2,407
Replies
3
Views
2,301
Replies
24
Views
12,689
Newer threads
Replies
1
Views
2,382
Replies
1
Views
2,420
Replies
8
Views
3,686
Replies
0
Views
1,965
Replies
0
Views
2,318
Latest threads
Replies
1
Views
4
Replies
0
Views
342
Replies
4
Views
1,728
Replies
2
Views
736
Recommended threads
Replies
3
Views
2,338
Replies
22
Views
9,099
Replies
5
Views
2,390
Replies
1
Views
2,736

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top