Quick Answer
Add custom CSS in the location maintained by the site’s theme and editing workflow. Block-theme Styles, a supported Customizer, a builder’s scoped controls and maintained theme files serve different purposes. Test a small, targeted rule in development, record where it lives and verify that it reaches only the intended elements.
Identify the active theme and existing styles
Before adding another rule, inspect how the target element is styled. A built-in control or existing variable may already represent the desired setting. Duplicating the same adjustment in several places creates a future maintenance problem.
Record the page, element, current behavior and intended result. Preserve the current styles and the project’s recovery option before making a broad change.
Choose a maintained location
Block-theme Styles
WordPress’s Styles documentation describes site-wide Additional CSS and separate per-block CSS. These inputs have different scopes and formatting expectations. Follow the instructions for the actual field and installed version rather than pasting a complete rule into every CSS box.
The documentation also notes that these custom CSS changes are tied to the active theme: a theme update does not overwrite them, but switching themes clears them from that workflow. Include them in a planned theme-change review.
A theme supporting the Customizer
The Customizer documentation explains that its availability depends on theme support and that block-theme sites generally use a different editing workflow. Where Additional CSS is available, confirm its scope and preview before publishing.
Maintained code or a child theme
For developer-managed styles, keep the change in the maintained code and deployment process. WordPress’s child-theme guide explains separating customizations from parent-theme files. Stylesheet loading depends on the theme, so creating a file alone does not establish that the browser receives it.
Start with one targeted rule
This illustrative rule assumes a developer has assigned the custom class to the intended note:
.service-intro-note {
padding: 1rem;
border: 1px solid #cbd5e1;
}
Inspect the page to confirm the class exists and that unrelated notes do not share it. Avoid broad selectors when the request concerns one component. The sample is not a tested patch for a particular website.
Verify the output and competing rules
- Confirm the stylesheet or rule reaches the browser.
- Inspect whether another declaration overrides it.
- Check the computed result and relevant responsive states.
- Test longer text and affected interactions.
- Review an unrelated component that should remain unchanged.
Refresh the appropriate cache through the project’s normal process when needed. If the rule still fails, inspect its delivery and cascade instead of repeatedly increasing selector strength or adding !important without understanding the conflict.
Keep the final location and reason with the development record. Our CSS variables guide and unit guide explain two common sources of unexpected values.
Key Takeaways
- Choose the location that fits the actual theme and maintenance workflow.
- Distinguish site-wide, block-type and component scopes.
- Keep developer changes separate from parent-theme files.
- Check delivery, cascade and unintended matches before approval.
Frequently Asked Questions
Why is Appearance, Customize missing?
The available workflow depends on the active theme and site configuration. A block-theme site commonly uses the Site Editor and Styles instead.
Does a child theme automatically load my new stylesheet?
Not in every setup. Verify the parent and child theme’s asset-loading behavior according to the official developer guidance.
Can AI-generated CSS be pasted without testing?
Review its selectors, scope and actual behavior like any other proposed code. Generation does not establish compatibility or correctness.

