Hybrid 1.1 Wordpress Theme

jdunhin

Active member
Registered
Joined
Feb 27, 2013
Messages
72
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

Well-known member
Joined
Jul 9, 2012
Messages
158
Points
18
I used to design themes for my blog myself. Anyway, it's cool to know a new way from you.
 
Older Threads
Replies
57
Views
18,215
Replies
2
Views
2,567
S
  • Locked
Replies
2
Views
3,746
Newer Threads
Replies
1
Views
2,696
Replies
8
Views
3,069
Replies
0
Views
1,810
Replies
0
Views
2,239
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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