Did you Bored with Widgetized Pages?

If your answer is ‘yes’, you can change it without any theme edit. You can apply this on functions.php :) After that you have non-widget pages. Widgets are useful but sometimes many publishers/bloggers are want full-sized pages. If you’re one of them, you can check this code. Lets begin…

With this function/recipe you will change your core functions.php file. If you have no information about WordPress coding -so you’re a newbie- you can get some support if you send a mail to me. Don’t touch your functions.php if you don’t know about WordPress

We will change functions.php. Make a backup and be careful.

Here is the code;

<?php
 add_filter( 'sidebars_widgets', 'disable_all_widgets' );
 function disable_all_widgets( $sidebars_widgets ) {
 if ( is_home() )
 $sidebars_widgets = array( false );
 return $sidebars_widgets;
 }
?>

Add this lines to functions.php. When you’re on homepage you have widgetized areas, but you’re in pages/posts there is no widget!

That’s all! Have a nice day!


Related posts:

Jul 22nd, 2009 | Posted in Wordpress
If you enjoyed this post, make sure you subscribe to my RSS Feed
Show Hide 1 trackbacks
Comments are closed.
Highslide for Wordpress Plugin