Sometimes when 移动WordPress sites, you may need to save and reuse 小部件 settings from one WordPress installation to another. If a site has just a few widgets, then you can probably do that manually. However, if there are many widgets in 多个侧边栏 and widget areas, then you need a better solution. In this article, we will show you how to import/export widget settings in WordPress.
First thing you need to do is install and activate the 小部件设置导入/导出 plugin. Upon activation, go to 工具 » 小部件设置导出 and select the widgets you want to export and click on 导出小部件设置 Button. The plugin will now export all your currently active widgets in widget_data.json file.
To restore these widgets in another WordPress installation, you will need to install and activate the Widget Settings Import/Export plugin on that site as well. Once you have activated the plugin, go to 工具 » 小部件设置导入 and click on the 选择文件 button.
Locate the JSON file you downloaded earlier and then click on the 显示小部件设置 button. The plugin will now load widget data from the imported file and will show you the list of widgets. Select the widgets you want to import and click on 导入小部件设置 to proceed. All your widgets will be restored to appropriate sidebars.