EN | ES

Lesson 11: Widgets and Sidebars

Objectives


What Are Widgets?

Widgets are small content blocks you can place in designated areas of your site. They add content and features outside of your main page/post content.

Widget Areas (also called "sidebars") are the locations where widgets can be placed. Despite the name "sidebar," widget areas can be anywhere your theme defines them:


Widget Areas in Hello Elementor

Hello Elementor is minimal and provides limited widget areas by default. Most themes (like Astra) offer more.

When using Elementor for your design, you'll rely less on widgets because Elementor has its own widgets system. However, understanding WordPress widgets is important because:


Managing Widgets

Accessing the Widget Editor

There are two ways to manage widgets:

Method 1: Block-based Widget Editor (newer)

  1. Go to Appearance → Widgets
  2. You'll see your widget areas with a block-based editor
  3. Add blocks just like in the post editor

Method 2: Through the Customizer

  1. Go to Appearance → Customize → Widgets
  2. Select a widget area
  3. Add and configure widgets with a live preview

Adding Widgets

  1. Go to Appearance → Widgets
  2. Click the "+" button in the widget area where you want to add content
  3. Search for or browse available widgets/blocks
  4. Click to add, then configure

Removing Widgets

  1. Click on the widget in the widget area
  2. Click the three-dot menu (⋮)
  3. Select "Remove"

Common Widget Types

Widget What It Does
Paragraph Display text
Image Display an image
Search A search bar for your site
Recent Posts List of your latest blog posts
Recent Comments List of latest comments
Archives Monthly/yearly post archives
Categories List or dropdown of post categories
Navigation Menu Display a menu you've created
Custom HTML Add raw HTML code
Calendar A calendar showing posts by date
Tag Cloud Display your tags in a visual cloud
RSS Display feed from another site

Plugin Widgets

Many plugins add their own widgets:


Common Widget Area Uses

Sidebar Widgets (for blogs)

A typical blog sidebar might include:

  1. Search bar
  2. About the author (text + image)
  3. Recent Posts
  4. Categories
  5. Social media links
  6. Newsletter signup

Footer Widgets

A typical footer might include:

  1. Column 1: About the company + contact info
  2. Column 2: Quick links (menu widget)
  3. Column 3: Recent posts or social links
  4. Column 4: Newsletter signup or business hours

Widgets vs Elementor Widgets

Don't confuse these two:

WordPress Widgets Elementor Widgets
Go in theme-defined widget areas Go anywhere in Elementor designs
Managed at Appearance → Widgets Managed in the Elementor editor
Limited placement options Full drag-and-drop freedom
Basic styling options Full styling control

When using Elementor: You'll mostly use Elementor's own widgets within the page builder. WordPress widgets become relevant mainly for:


The Widget Block Editor

Modern WordPress uses the block editor for widgets (same blocks as the post editor). This means you can add:

Legacy Widget Block

If a plugin provides an old-style widget that doesn't have a block equivalent:

  1. Add the "Legacy Widget" block
  2. Select the old-style widget from the dropdown
  3. Configure it within the block

Exercises

  1. Explore widget areas: Go to Appearance → Widgets and see what widget areas your theme provides.

  2. Add widgets to a sidebar: If your theme has a sidebar widget area, add a Search block, a Recent Posts block, and a Categories block.

  3. Add footer content: If your theme has footer widget areas, add some text, an image, and a navigation menu widget.

  4. Use the Customizer: Go to Appearance → Customize → Widgets and try adding/editing widgets with the live preview.

  5. Remove a widget: Practice removing a widget you added.


Key Takeaways


Next Lesson: Lesson 12 - The Customizer