How to add custom CSS in WordPress
Additional CSS lets you adjust colors, sizes and spacing without editing theme files, and you see the result live before anything is published.
- Time: About 5 minutes
- You need: A WordPress administrator login
- Updated:
CSS controls how your site looks. Small changes, like a bigger phone number or a different button color, are safe in Additional CSS because they’re kept apart from your theme. For anything bigger, send it to me: sitewide style changes belong in the theme itself.
Before you start
- Know which element you want to change. Right-click it on your site and choose Inspect to see its name.
- The steps depend on your theme. LER’s custom themes use the Customizer. Newer block themes use the Site Editor (see below).
Step 1: Open Appearance, then Customize
In the left menu, go to Appearance > Customize. A live preview of your site opens with settings on the left.
Step 2: Open Additional CSS and type your CSS
Click Additional CSS at the bottom of the settings list. Type or paste your CSS in the box. The preview on the right updates as you type, so you can check it before anyone else sees it.

WordPress 7.1, classic theme: Additional CSS with a live preview, then Publish. Step 3: Click Publish
When it looks right, click Publish at the top. To keep working on it without going live, click the gear next to Publish and choose Save Draft.
Block themes: use the Site Editor
If Appearance shows Editor instead of Customize, you have a block theme. Go to Appearance > Editor > Styles, click the three dots at the top of the Styles panel, choose Additional CSS, then Save.
Undoing a change
Delete the lines you added and publish again. If you need the old version back, it’s in your latest backup.
Quick answers
My CSS doesn’t change anything.
The theme’s own style may be more specific. Try a more specific selector, and avoid !important unless nothing else works. If you’re stuck, send me a screenshot of what you want changed.
Will my CSS survive a theme update?
Yes. Additional CSS is stored separately from the theme. It’s only lost if you switch to a different theme.
Official help pages
- WordPress Documentation: Customizer (opens in a new tab)
- WordPress Documentation: Styles overview (opens in a new tab)
Checked against these pages on November 3, 2026.
Related guides

How to edit a page or post in WordPress
Edit a WordPress page or post: open it from Pages or Posts, click a block to change text or images, then Save. Real WordPress 7.1 screenshots, step by step.

How to add custom code to the header or footer
Add code to the WordPress header, body or footer with the free WPCode plugin: Code Snippets > Header & Footer. Real WordPress 7.1 screenshots.

How to back up your WordPress site
Back up a WordPress site with the free UpdraftPlus plugin: Backup Now, save it to cloud storage, and know how to restore it. Real WordPress 7.1 screenshots.