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
387
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
1,814
Replies
3
Views
1,737
Replies
24
Views
11,131
Newer threads
Replies
1
Views
1,825
Replies
1
Views
1,890
Replies
8
Views
3,041
Replies
0
Views
1,447
Replies
0
Views
1,801
Latest threads
Replies
0
Views
16
Replies
1
Views
49
Replies
1
Views
38
Replies
1
Views
54
Replies
2
Views
47
Recommended threads
Replies
0
Views
1,923
Replies
1
Views
3,297
Replies
33
Views
7,303

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Latest Blog ArticlesMost Viewed Threads

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