0815

Du musst dich anmelden um Beiträge und Themen zu erstellen. Einloggen · Registrieren

Automatically Disable Widgets

Quick tip to disable all widget functionality from your theme. Add the following to your functions.php file and call it done:

<?php // disable all widgets
function disable_all_widgets($sidebars_widgets) {

	$sidebars_widgets = array(false);
	return $sidebars_widgets;

}
add_filter('sidebars_widgets', 'disable_all_widgets');
?>



0