3 4 Widgets Wordpress For Beginners
3 4 Widgets Wordpress For Beginners
Widgets
Learning objectives
5. Widget blocks
Key takeaways
Learning objectives
In this lesson, you’ll learn:
● what a WordPress widget is;
● where you can place widgets on your site;
● what are the different types of widgets, and what they entail;
● how you can add, change, or delete a widget.
A WordPress widget is a simple, pre-built block you can add to your site
that serves a specific function. There are two types of widgets in WordPress.
First, there are the widgets you add with the Customizer. They appear
site-wide in the widget areas of your theme. For example, if you have a
search bar widget in your site’s footer (Image 1), it will be visible no matter
what page a visitor is on.
Yoast Academy 1 / 14
Image 1: A search bar widget
On the other hand, the widget blocks appear only on the single post or page
you add them to.
So, the magic of widgets is that your site gets a little something special
without too much hassle. Even if you’re not very technical and don’t know
how to code, you can still add lots of functionalities to your site simply by
adding widgets.
And there are tons of widgets that do all kinds of different things that may
be convenient on your site. For example:
We’ll go into several types of widgets in more detail in a bit, but first, let’s
focus on where you can place widgets on your site.
However, some themes don’t include any widget areas, so if you want to use
widgets, it’s wise to check for this when selecting a theme. To find out where
the widget areas in your theme are, you can go to the Customizer. There,
you click Widgets. For example, the default WordPress theme Twenty
Twenty-One, only has one widget area, the footer (Image 2). In contrast, one
of the other default themes, Twenty Twenty, has two widget areas (Image 3).
Yoast Academy 2 / 14
Image 2: Widget areas in the theme Twenty Twenty-One
● Text
The Text widget is the most versatile default widget because it allows
you to add nearly anything to your site’s widget areas. This could be
a simple text, a collection of links, or a media file.
Yoast Academy 3 / 14
Image 4: Text widget
● Search
The Search widget adds a fully functional search bar to your site,
which helps your visitors find what they’re looking for easily.
● Recent posts
The Recent posts widget adds a list of your most recent posts, so
your visitors will be encouraged to read more of your latest content.
Yoast Academy 4 / 14
● Archives
The Archives widget organizes your previously published posts by
month, which can be handy for visitors who want to browse your
older content.
● Categories
The Categories widget organizes your posts by category in one of
your widget areas. This can be useful for visitors who want to find
more of your posts about certain topics.
Yoast Academy 5 / 14
● Calendar
The Calendar widget displays links to your posts by date. Your
visitors will be able to click a date on the calendar and see which
posts you have written on that particular date.
● Gallery
The Gallery widget provides you with a simple way to display a photo
gallery or slideshow in one of your site’s widget areas.
● Meta widget
The Meta widget comes with five links:
● The Site Admin link leads to the WordPress dashboard or
login page (if you are logged out).
● The Log in/out link allows you to log in or log out of your
webpage.
Yoast Academy 6 / 14
● The Entries RSS link gives access to your site feeds.
● The Comments RSS link gives access to your site’s comments
feeds.
● WordPress.org leads to the official WordPress.org site.
These are just the most used default widgets. There are many more default
widgets. We’ll discuss where you can find these widgets in WordPress and
how you can add them to your site later in this lesson.
Widget settings
Most of the widgets we’ve discussed above allow you to enter a title and
tweak a few basic settings. When adding a widget, we recommend you look
through these options to check what matches your needs.
Third-party widgets
In addition to the default widgets, there are also non-default, third-party
widgets created by the WordPress community. These widgets allow you to
personalize your site even more.
Firstly, some themes offer additional widgets besides the default ones.
For example, a theme dedicated to selling products in an online store will
most likely offer a “Most popular products” widget that you can place on
your site.
Secondly, lots of plugins add widgets that help you enhance your site.
Many plugins add a new widget or a bundle of widgets to your dashboard.
Yoast Academy 7 / 14
For example, the Local SEO for WordPress plugin features several widgets
like one that lets you add opening hours, maps, locations, etc.
If you want to add a new widget, you should follow the steps below:
1. Drag the widget of your choice from the left side into one of the
widget areas on the right.
2. Drop your widget.
3. Your widget is saved!
Yoast Academy 8 / 14
Image 12: Adding widgets through the WordPress Dashboard
Yoast Academy 9 / 14
Lastly, if you want to delete a widget through the WordPress Dashboard,
follow these steps:
At the bottom of the Widgets screen, you will see the Inactive widget area.
You can use this when you want to remove a widget but save its settings for
future use. For example, this feature can come in handy when you switch
themes. Since different themes have different widget areas, switching may
cause some of your widgets to disappear. In such cases, you should be able
to find those lost widgets in the Inactive widgets area.
If you want to add a new widget, you should follow the steps below:
Yoast Academy 10 / 14
4. Select the widget you would like to add from the widget overview
that appears.
5. The widget is added to the Customizer sidebar, where you can edit it
(Image 16). You can also see what the widget will look like on your
site in the preview on the right.
6. If you’re satisfied, click ‘Publish’.
Yoast Academy 11 / 14
Image 16: Adding and editing widgets through the Customizer
If you want to delete one of the widgets you have added, you should:
Yoast Academy 12 / 14
5. Widget blocks
As we mentioned at the start of this lesson, you can also add widgets to
individual posts and pages with WordPress blocks.
Once you add the widget to the post, you can edit it with the sidebar and the
toolbar. Each of the widgets has different editing options. For example, the
Social Icons widget lets you adjust its alignment and its size with the toolbar
(1 in Image 19). In the sidebar (2 in Image 19), you can change the widgets’
style, determine the link settings and change the colors.
Yoast Academy 13 / 14
Image 19: The Social Widget block
Key takeaways
● A WordPress widget is a simple, pre-built block you can add to your
site that serves a specific function, like a search bar, a list of your
most recent posts, or an archive of your posts.
● Widgets can only be put into so-called widget areas. These areas are
defined by your theme and are usually located in the sidebar(s) and
the footer of your site.
● WordPress offers a pretty big selection of useful default widgets. In
addition, there are non-default, third-party widgets created by the
WordPress community that come with some themes and plugins.
● There are two ways to add, change, or delete widgets: through
the WordPress Dashboard on your site’s back end and the
Customizer on your site’s front end.
Yoast Academy 14 / 14