Why You'd Reach for Custom CSS
The Customizer from Day 5 covers big, structural choices — colors, fonts, layout. Custom CSS is for the smaller stuff it doesn't expose: nudging a button's padding, hiding an element on mobile, or tightening the spacing between two sections.
The key rule is the same one from Day 21's child themes preview: never edit your active theme's files directly, since an update will silently erase your changes. Custom CSS through the Customizer avoids that problem entirely.
- ✓Appearance → Customize → Additional CSS is built into every WordPress theme.
- ✓CSS added there is theme-update-safe and previews live before you publish.
- ✓It's meant for small, targeted tweaks — not a full redesign.
Using Your Browser's Inspector
Before you can style an element, you need its exact class or ID. Right-click anything on your page and choose "Inspect" to open your browser's developer tools.
Clicking an element highlights its matching CSS rules on the right.
From Selector to Style
Once you have a class name, the CSS itself follows a simple pattern: selector, then property-value pairs inside curly braces.
/* Give the call-to-action button more breathing room */ .nav-cta { padding: 14px 28px; font-size: 1rem; }
Changes typed into Additional CSS preview instantly on the right side of the Customizer, before you publish anything.
From Inspector to Published Site
Why a Rule Sometimes "Doesn't Work"
a { color: navy; } is easily overridden by a more specific theme rule targeting the same links.
.nav-cta { color: navy; }, wins over broader theme rules almost every time.
What Trips People Up First
Breaking Down What You Just Learned
Additional CSS is update-safeIt lives separately from your theme's own files.
Inspect before you styleDevtools tells you the exact class name to target.
Specificity decides the winnerA specific class beats a generic element selector.
Preview before publishingThe Customizer shows changes live before they go public.
Check the small stuff firstTypos, missing semicolons, and stale caches explain most "it didn't work" moments.
Try It Yourself
Inspect your site's footer credit link, find its class, and add a rule in Additional CSS that changes its color on hover. Confirm it in the live preview before publishing.
Style Three Elements on Your Capstone Site
Practicing the inspect-then-style workflow
Pick three small visual tweaks and make each one through Additional CSS rather than a page builder setting.
- Inspect and adjust the spacing around one section on your homepage.
- Change the hover color of one button or link.
- Adjust font size for one heading using its specific class.
- Preview all three changes together before publishing.
- Publish, then reload the live site to confirm nothing broke.
Recap
The safe, update-proof place for small styling tweaks.
Right-click → Inspect to find the exact class to target.
More specific selectors override generic ones.
Always check the Customizer preview before publishing.
Key Takeaways
- Use Appearance → Customize → Additional CSS for small tweaks that need to survive theme updates.
- Use your browser's Inspector to find the exact class name before writing any rule.
- A more specific selector beats a generic one when two rules target the same element.
- Always check the live preview before publishing a CSS change.
- Typos, missing semicolons, and stale caches explain most CSS that "doesn't work."