Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Start by identifying your active theme. A classic theme usually gives you Appearance > Widgets (and sometimes Appearance > Customize > Widgets), while a block theme uses Appearance > Editor and has no traditional widget areas in the same sense. The correct screen determines whether you are styling one widget instance, a whole block type, or the theme globally.

First: determine whether the theme is classic or block-based

Classic themes

Open Appearance > Widgets. Depending on the theme and WordPress version, you may instead reach widget areas through Appearance > Customize > Widgets. Widget areas commonly represent sidebars or footers, but the available locations are defined by the active theme.

Since WordPress 5.8, many classic themes use the block-based widget editor. It can contain regular blocks alongside traditional widgets. A plugin or older widget may appear as a Legacy Widget block, which is still managed in the widget area.

Block themes

Open Appearance > Editor. Block themes build sidebar- or footer-like areas with templates, template parts, and patterns rather than traditional widget areas. The Appearance > Widgets menu may therefore be absent. Edit the relevant template or template part in the Site Editor instead.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Style one block inside a classic widget area

  1. Go to Appearance > Widgets and open the widget area containing the block. If you are using the Customizer-based editor, select the block and expand Show more settings if its controls are collapsed.

  2. With the block selected, open Settings > Advanced. In Additional CSS class(es), enter a distinctive class such as sidebar-feature. The field adds that class to the block’s rendered markup.

  3. Add a matching rule in the available Additional CSS field or in your theme stylesheet:

    .sidebar-feature {
      background: #f4f4f4;
      border: 1px solid #ddd;
      padding: 1rem;
    }
  4. Preview the front end, inspect the resulting markup, and adjust the selector or declarations to suit the theme. The example is illustrative; the final HTML and existing theme styles determine what works.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a unique class when only one item should change. A broad selector such as .widget can unintentionally restyle every widget in the area.

When the widget is classic or supplied by a plugin

A classic or third-party widget may not expose the block’s Additional CSS class(es) field. If it is displayed through a Legacy Widget block, inspect the front-end HTML with your browser’s developer tools and identify a stable class or ID emitted by that widget. Scope the rule under its containing sidebar or footer where possible.

There is no universal selector for every plugin widget. Avoid targeting generated, position-based selectors that could change after an update; confirm the selector on your own site before relying on it.

Style block-theme content in the Site Editor

Site-wide settings and a whole block type

In Appearance > Editor, open Styles for site-wide controls. You can add site-wide CSS there and configure a block type under Styles > Blocks. CSS set for a block type applies to every instance of that type across the site, so it is not a substitute for a one-off widget class.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Theme development with theme.json

For standard WordPress block styling, prefer the styles property in theme.json when possible. WordPress documents this approach because users can adjust the result through Appearance > Editor > Styles without fighting unnecessary CSS specificity. Small block-specific rules can also be represented with block styles in theme.json.

Larger or complex block CSS

For substantial per-block CSS in a theme, register a separate block stylesheet with wp_enqueue_block_style(). Core blocks generally use classes such as .wp-block-image, but plugin blocks can use different class names; inspect the actual markup before writing a selector.

Choose the method by scope and ownership

Goal Best location What it affects Main consideration
One block instance in a classic widget area Block’s Additional CSS class(es) plus matching CSS Only the instance carrying that class Requires a stable, distinctive selector
Every instance of a block in a block theme Appearance > Editor > Styles > Blocks That block type site-wide Not suitable for a single widget-like item
Theme-wide standard block styling theme.json styles Theme’s supported global and block styles Maintained as theme code and exposed through editor controls
Complex per-block theme CSS A registered stylesheet via wp_enqueue_block_style() The selected block’s stylesheet rules Requires theme-development access

Keep CSS persistence in mind

Additional CSS entered through the Customizer is associated with the active theme. WordPress’s CSS guidance notes that it is no longer active after switching to another theme, although it becomes available again if you switch back. If the styling must travel with a custom theme or remain under version control, maintain it in the theme’s files instead and test the result after theme changes.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and fixes

The Widgets menu is missing

Check whether the site uses a block theme. If so, use Appearance > Editor and edit the relevant template, template part, or pattern.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
BAZIC Products Take Along Large Print Word Finds Puzzle Book, 2 Titles
  • Offer contains ONLY 2 titles regardless of the order quantity placed for this listing. Set of volumes may vary. Ordering in multiples will not change the volume received. Image is meant to display the type of book you will be receiving only.
  • BRAIN TEASING. Perfect Puzzle Book for all ages to learn. Enjoy puzzles, maze, word search, or crosswords! This puzzle book is ideal for people on the go and will provide hours of entertainment.
  • FUN & CHALLENGING. Exercise your brains long-term memory, working memory, executive functioning, attention to detail, multitasking, and processing speed. Perfect gifting item for those who love word search puzzles!
  • RELAX, RECHARGE, & REFOCUS. The word find puzzle book offers an enjoyable challenge for all, from beginners to experts. Ideal for learning, practicing, and having fun time for various users.
  • OFFICIALLY LICENSED. High-resolution printing. Perfect for family activities, classroom learning, or travel. Provide an engaging, educational experience with every page, making it both fun and meaningful.

The class was added but nothing changed

  • Confirm the class spelling in both the block’s Additional CSS class(es) field and the selector.
  • Inspect the front-end HTML to verify where the class is rendered.
  • Check whether the theme’s selector is more specific than yours; refine the selector narrowly rather than applying a site-wide rule.
  • Clear any page or browser cache, then preview the front end again.

All widgets changed instead of one

Replace a generic selector such as .widget with the unique class assigned to the intended block, and scope it to the relevant widget area if necessary.

A plugin widget has no usable class field

Inspect its emitted markup and target a stable class or ID. Because plugin markup varies, verify the selector after plugin updates.

The style disappears after a theme change

Move the rule from theme-associated Customizer CSS into the maintained stylesheet or theme code if it is part of the design rather than a temporary theme customization.

A practical decision checklist

  • Classic theme? Open Appearance > Widgets (or the Customizer’s Widgets panel).
  • Block theme? Open Appearance > Editor and edit the matching template part or pattern.
  • One instance? Add a unique class and target it.
  • Every block of a type? Use block styles in the Site Editor or theme.json.
  • Complex theme CSS? Use a maintained stylesheet and, for larger block-specific rules, wp_enqueue_block_style().
  • Third-party widget? Inspect its actual front-end markup instead of assuming a universal class.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.