One of my friend asked me is it possible to remove inactive widgets from my WordPress blog. Some times you don't want to use a widget anymore or replace a
WordPress template, that your some widgets are moved to inactive widgets area. This is great way to save your currently widgets when changing WordPress themes.
Removing inactive widgets manually is a very easy process. In this short article I will tell you how to remove inactive widgets in
WordPress blog. Let's follow given below steps:
How To Delete The Inactive Widgets In WordPress
First of all install and activate the
Remove Inactive Widgets plugin on your WordPress blog. Then, go to
Appearance » Widgets. Inside the inactive widgets box you will see a button under name
"Remove Inactive Widgets". Click the button and it will remove all your inactive widgets without even refreshing the page.
If you don't like above method you can use manual method also. Just paste the following code in your template’s functions.php file. Always remember please remove this code once you are done.
$widgets = get_option('sidebars_widgets');
$widgets['wp_inactive_widgets'] = array();
update_option('sidebars_widgets', $widgets);
If you have any questions related to this article, then leave a comment below. If you want to ask different questions then you can ask me on
twitter (@BlogsDaddy).
Author - Gagan Masoun is the owner of Blogs Daddy Blog.Gagan lives in India, has been blogging since 2010 and writing Blogs Daddy Blog since 2011.You can find him in the usual social networks.
0 comments:
Post a Comment