Posted by KaiseRCrazY on 22nd July 2009

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!

  • del.icio.us
  • Digg
  • Facebook
  • FriendFeed
  • Reddit
  • StumbleUpon
  • Technorati
  • PDF
  • Print

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

    1 Response

  1. [...] Go here to read the rest:  Did you Bored with Widgetized Pages? [...]

Post your comments