What is WordPress Widget?
In WordPress a widget is a self-contained area of a web page that performs a specific function, or the code that generates such a self-contained area. Examples are the default widgets that come with WordPress; for Categories, Tag cloud, Search, etc. Plugins and themes can provide additional widgets.
Widgets require no code experience and they can be added, removed, and rearranged on the Theme Customizer screen:
or on Appearance > Widgets screen:
Manage Widgets from Widgets Screen
WordPress comes with a collection of 15 pre-built widgets:
More widgets can be added by activating another theme (in the example: twentyeleven theme):
or by activating new plugin (in the example: amr shortcode any widget plugin):
The widgets may be created in many different ways, but widget areas (locations) are defined only by the active WordPress theme. Different themes support different widget areas (twentyeleven theme):
If you activate different theme it will define its own widget areas (twentyseventeen theme):
Your previous theme widgets (if such had been installed) will be stored in the Inactive Widgets area:
Go to Appearance > Widgets in the WordPress Administration Screens.
Choose a Widget and either drag it to the area where you wish it to appear:
or click the widget, select a destination area if your theme has more than one and click the Add Widget button:
To arrange the Widgets within the sidebar or Widget area, click and drag it into place:
To customize the Widget features, click the down arrow in the upper right corner to expand the Widget's interface:
To save the Widget's customization, click Save.
If you want to remove a widget you can simply drag it out of the widget area.
If you drag it out of an area and into the Available Widgets section of the Widgets screen, it will be removed and all its settings lost.
If you’d rather keep any settings you’d set up for later use, drag it to the Inactive Widgets section of the screen instead.
To remove the Widget without saving its settings, click Delete or drag it over Available widgets area and drop it there.
You can delete Inactive Widgets by clicking Clear Inactive Widgets button:
##Manage Widgets from Theme Customizer
Go to Appearance > Customize in the WordPress Administration Screens.
Click the Widget menu in the Theme Customizer to access to the Widget Customize Screen.
Click the down arrow of Widget Area to list the already registered Widgets.
Click Add a Widget button at the bottom of sidebar. It shows the list of available widgets. Click a widget you want to add. The widgets should be added in the sidebar.
Preview your site and you should see the content from your new Widget.
To customize the Widget features, click the down arrow in the right to expand the Widget's interface.
To remove the widget, click Remove from Widget's interface in above step.
To arrange the Widgets within the Sidebar, drag and drop the widgets in the order you want or click Reorder link and click up arrow and down allow of each widget and click Done after the arrange operation.
Using Text Widgets
The Text Widget is one of the most commonly used WordPress Widgets that comes with every WordPress installation. It allows users to add text, video, images, custom lists, and more to their WordPress sites.
Install Text Widget
- Go to Appearance > Customize in the WordPress Administration Screens and click the Widget menu in the Theme Customizer. Or Go to Appearance > Widgets in the WordPress Administration Screens.
- Open the sidebar/area to which you wish to add the Text Widget.
- Find the Text Widget in the list of Widgets.
- Click and drag the Widget to the spot you wish it to appear.
Set or Edit Text Widget’s Content
- Click the down arrow to the right of the Text Widget title.
- Set the Text Widget Title (optional).
- Add the text or HTML code to the box or edit what is currently there.
- Click Save to save the Text Widget.
- Click Close to close the Text Widget.
WordPress Widgets can be very useful assets providing optimized content and functionality to visitors thus improving their experience on your site.
The only danger remains the same as it is with most WordPress features like themes, plugins and options - do not use it just because it is easy and there are plenty of choices.
Use only what is needed to your site' visitors.