<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw" -->

---
title: Custom CSS for Individual Block Instances in WordPress 7.0
description: WordPress 7.0 adds a new `customCSS` block support that lets users apply custom CSS directly to individual block instances from the post or site editor....
canonical: https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Custom CSS for Individual Block Instances in WordPress 7.0 | daily.dev
og:description: WordPress 7.0 adds a new `customCSS` block support that lets users apply custom CSS directly to individual block instances from the post or site editor....
og:url: https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw
og:image: https://api.daily.dev/og/posts/L9qEHhgSw.png
og:image:alt: Custom CSS for Individual Block Instances in WordPress 7.0
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom CSS for Individual Block Instances in WordPress 7.0

**[Make WordPress Core](https://daily.dev/sources/wordpresscore)** · 4 min read · 18 upvotes · 2 comments

## Summary

WordPress 7.0 adds a new `customCSS` block support that lets users apply custom CSS directly to individual block instances from the post or site editor. Previously, targeting a single block required a two-step workaround involving custom class names and the global CSS field. The new feature adds a Custom CSS input in the block inspector's Advanced panel, gated by the `edit_css` capability. CSS is stored in the block's `style` attribute under a `css` key, and at render time a unique hash-based class is generated and scoped using `:root :where()` to ensure proper cascade order after Global Styles. The support is enabled by default for all blocks, with an opt-out via `block.json`. Several core blocks like `core/freeform` and `core/html` opt out by default. Plugin and theme developers using server-side rendering should ensure their block's outermost tag is a standard HTML element.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://make.wordpress.org/core/2026/03/15/custom-css-for-individual-block-instances-in-wordpress-7-0/>

## Community discussion

Top comments from developers on daily.dev.

**@fachremyputra** · 0 upvotes

> Can't wait for the release

**@mobeisaac** · 0 upvotes

> Is wordpress even relevant today

## Similar posts on daily.dev

- [Hiding the Classic block from the inserter in WordPress 7.1](https://daily.dev/posts/hiding-the-classic-block-from-the-inserter-in-wordpress-7-1-4kv34b72a) · Make WordPress Core · 14 upvotes · 3 comments
- [WordPress PHP-Only Block Registration](https://daily.dev/posts/wordpress-php-only-block-registration-ocqm8qoge) · CSS-Tricks · 3 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#wordpress](https://daily.dev/tags/wordpress)

[View this post on daily.dev](https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Custom CSS for Individual Block Instances in WordPress 7.0","url":"https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw"},"datePublished":"2026-03-15T21:43:45.864Z","dateModified":"2026-03-15T21:44:11.668Z","description":"WordPress 7.0 adds a new `customCSS` block support that lets users apply custom CSS directly to individual block instances from the post or site editor....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Make WordPress Core","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Make WordPress Core","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/892d1a79e30e4e8a911b5726c6fb1a06","url":"https://daily.dev/sources/wordpresscore"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":18},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"css,wordpress","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Make WordPress Core","item":"https://daily.dev/sources/wordpresscore"},{"@type":"ListItem","position":3,"name":"Custom CSS for Individual Block Instances in WordPress 7.0"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/custom-css-for-individual-block-instances-in-wordpress-7-0-l9qehhgsw","comment":[{"@type":"Comment","text":"Can’t wait for the release","datePublished":"2026-03-22T10:15:11.665Z","url":"https://daily.dev/posts/L9qEHhgSw#c-nV7z83Ezp","author":{"@type":"Person","name":"Fachremy Putra","url":"https://daily.dev/fachremyputra","image":"https://lh3.googleusercontent.com/a/ACg8ocKYsyfNsXT_MF_mlBsLJCQw1Jf_Qp5ykBqOuasnVXSlUFasitws=s96-c"}},{"@type":"Comment","text":"Is wordpress even relevant today","datePublished":"2026-03-24T07:52:13.838Z","url":"https://daily.dev/posts/L9qEHhgSw#c-mA256Pnmd","author":{"@type":"Person","name":"ISAAC","url":"https://daily.dev/mobeisaac","image":"https://media.daily.dev/image/upload/s--1Eu7g42X--/f_auto/v1768199581/avatars/avatar_3dmTUW9GzXB21yyf4qBWF?_a=BAMAMiZW0"}}]}
```

