Duplicator’s New One-Click Backup Cleanups, Auto-Deletion, and Version Updates
Duplicator’s New One-Click Backup Cleanups, Auto-Deletion, and Version Updates
Have you ever stared at your WordPress site thinking, “It’s so close to perfect, but that button is the wrong shade of blue,” or “I wish I could make that text a bit larger”?
WordPress themes come with customization options, but sometimes they can’t cover everything you might want to change.
That’s where CSS comes in — it’s like having a magic wand that lets you tweak your site’s appearance exactly how you want it.
In this guide, I’ll walk show you what CSS is, how to add your own custom styles, and some practical examples to get you started.
By the end, you’ll feel more comfortable making those visual adjustments that take your site from “almost there” to “exactly right.”
Think of your WordPress website like a house. The HTML code forms the structure — the walls, rooms, and foundation. CSS (Cascading Style Sheets) is all the interior design elements: the paint colors, furniture arrangement, lighting, and decorative touches.
CSS tells your browser how to display the content on your page. Want all your paragraph text to be blue? CSS can do that.
Need more space between your heading and the paragraph below it? CSS handles that too.
The basic structure of CSS follows this pattern:
selector { property: value; }
The selector targets specific elements on your page, and the property-value pairs define how those elements should look.
For example:
p { color: blue; }
This simple line tells the browser to display all paragraph text in blue. That’s all there is to it!
While simple in concept, CSS becomes powerful when you start combining different selectors and properties to create precise styling rules for your site.
CSS in WordPress isn’t just in one place — it’s layered throughout your site, which is why it’s called “cascading.” Understanding this hierarchy helps you know where to make changes.
Your theme’s style.css file is the foundation. It contains all the basic styling rules that give your theme its signature look. Think of it as the default interior design package.
The WordPress Customizer offers a dedicated “Additional CSS” section where you can safely add your own styles. These override the theme’s defaults and survive theme updates.
If you’re making substantial changes, a child theme is your best bet. Its style.css file inherits everything from the parent theme, but any styles you add take precedence.
Some plugins bring their own CSS to style their specific features. These usually load after theme styles.
The Block Editor (Gutenberg) and Full Site Editor introduce new ways to add CSS, allowing you to style specific blocks or sections without affecting the entire site.
Occasionally, you’ll see inline CSS — styles applied directly to HTML elements using the style attribute. This approach is generally discouraged for sitewide styling because it’s harder to maintain.
Understanding this cascade is important because when styles conflict, the more specific or later-loading CSS wins. This is why you can override your theme’s styling with custom CSS.
Learning CSS gives you control that theme options alone can’t provide.
Many WordPress users hit a frustrating wall when they can’t change something about their site’s appearance. The color picker doesn’t have quite the right shade. The spacing between elements looks off. The font size needs to be just a bit larger.
With even basic CSS knowledge, you can make these precise adjustments yourself.
CSS allows you to make your site truly unique. Without it, you’re limited to whatever customization options your theme developer thought to include. With CSS, you can break free from those constraints.
When visual glitches appear (and they will), understanding CSS helps you fix them quickly. Maybe a plugin update caused some text to overlap, or a theme update changed your button styling. A few lines of CSS can often solve these issues immediately.
Most importantly, learning CSS builds a foundation for understanding how WordPress themes work. Once you grasp how CSS controls appearance, you’ll better understand why things look the way they do — making troubleshooting much faster.
There are plenty of accessible resources available to learn CSS, many of them free.
Mozilla Developer Network (MDN) Web Docs is a great resource for web technologies including CSS. Their tutorials break down concepts into digestible pieces with practical examples.
W3Schools offers beginner-friendly CSS lessons with interactive examples where you can test code directly in your browser. This hands-on approach makes learning feel less abstract.
YouTube is filled with tutorials specifically for WordPress CSS. Seeing someone walk through changes in real time can help concepts click when text explanations aren’t enough.
Many course platforms like Coursera and Udemy offer free (or very affordable) CSS courses. Some focus specifically on WordPress, showing you exactly how to target theme elements.
The most effective learning happens when you actually practice. Set up a test site (don’t experiment on your live site!) and try making small changes. See what happens when you adjust properties like colors, margins, or font sizes.
Remember that you don’t need to memorize every CSS property. Even professional developers regularly look things up. Understanding the core concepts is what matters.
WordPress offers several ways to add custom CSS. Each has its advantages depending on your needs and comfort level.
The WordPress Customizer is the safest place to easily add CSS to WordPress.
Navigate to Appearance » Customize » Additional CSS in your WordPress dashboard.
You’ll see a code editor where you can type or paste your CSS.
You can preview your changes in real time before publishing them. If something doesn’t look right, adjust your code and immediately see the results.
The Customizer is perfect for small to medium amounts of CSS. If you find yourself adding hundreds of lines of code, you might want to consider one of the other methods.
WPCode (formerly Insert Headers and Footers) is a popular code snippets plugin. It provides a more organized way to manage your custom CSS.
After installing the plugin, navigate to Code Snippets » Add Snippet. Hover over Add Your Custom Code and click on Add Custom Snippet.
Choose CSS Snippet as the code type, give it a descriptive name, and add your CSS code.
WPCode offers several advantages over the Customizer. You can create multiple CSS snippets, making them easier to manage than one large block of code.
You can also control precisely where and when snippets run. Need CSS that only applies to your blog posts? WPCode can handle that conditional loading.
The plugin includes error prevention features that help catch syntax mistakes before they affect your live site — a helpful safety net when you’re learning.
If you’re using a block theme, you have access to the Full Site Editor instead of the Customizer. However, you can still add custom CSS to your site.
Navigate to this URL, adjusting it with your site’s domain: https://example.com/wp-admin/customize.php
This will open a limited version of FSE. You’ll see that it has an Additional CSS section, just like the Customizer.
For extensive customizations, you might need to edit CSS in WordPress theme files directly.
In your dashboard, you can go to Appearance » Theme File Editor and edit the style.css file.
However, this comes with an important warning: I wouldn’t recommend modifying a parent theme’s files directly.
Instead, create a child theme. A child theme inherits all the functionality and styling of the parent theme while allowing you to safely make changes that won’t be overwritten during updates.
Once you have a child theme activated, you can edit the CSS files in your WordPress theme file editor. You could also access your theme files using FTP or your hosting provider’s file manager.
Let’s look at some practical examples of simple custom CSS that solve common WordPress customization needs.
Want to make your quote blocks stand out more? You can target them with CSS:
.wp-block-quote {
background-color: #f9f9f9;
border-left: 4px solid #0073aa;
padding: 20px;
}
This gives the quote blocks a light gray background, a blue left border, and some padding for breathing room.
Maybe your sidebar widgets need some visual separation. You can add space and borders between them:
.widget {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #eaeaea;
}
Each widget will now have more space below it and a subtle dividing line.
Navigation menus often need styling adjustments to match your site’s design:
.main-navigation li a {
color: #333333;
font-weight: 500;
text-transform: uppercase;
}
.main-navigation li a:hover {
color: #0073aa;
}
This makes menu links dark gray, slightly bold, all-caps, and blue when hovered over.
Typography has a huge impact on your site’s personality. Here’s an example of how you could customize fonts with CSS:
body {
font-family: 'Open Sans', sans-serif;
font-size: 16px;
line-height: 1.6;
}
h1, h2, h3 {
font-family: 'Montserrat', sans-serif;
font-weight: 700;
}
Remember that if you’re using non-standard fonts, you’ll need to import them first using @font-face or by linking to Google Fonts.
Changing colors is one of the most common CSS tasks. These few lines change your site’s background to light gray and make links pink with a darker shade when hovered over:
body {
background-color: #f5f5f5;
}
a {
color: #e94c89;
}
a:hover {
color: #c13872;
}
The space around and within elements (margin and padding) significantly affects readability. This adds space below paragraphs and creates padding around your main content area:
.entry-content p {
margin-bottom: 20px;
}
.site-content {
padding: 40px 20px;
}
Forms often need styling help to match your site’s design. These styles create clean form fields with a standout submit button:
input[type="text"],
input[type="email"],
textarea {
border: 1px solid #ddd;
padding: 10px;
border-radius: 4px;
}
input[type="submit"] {
background-color: #0073aa;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
}
Even experienced developers run into CSS problems. Here are some common issues and how to solve them.
You’ve added new CSS, but your site looks exactly the same. Before you panic, this is often just browser caching.
Browsers save (cache) CSS files to load sites faster. This means they might be showing you old CSS instead of your new changes.
Try a hard refresh by pressing Ctrl+F5 (Windows) or Cmd+Shift+R (Mac). This forces your browser to get fresh copies of all files instead of using cached versions.
If you use a caching plugin like WP Super Cache or W3 Total Cache, you’ll need to clear that cache too when making CSS changes.
Look for a Clear Cache button in your caching plugin’s settings.
Until you clear this cache, your changes might only be visible to you (when logged in) but not to regular visitors.
When your CSS isn’t working, the problem often lies with the selector — you’re targeting the wrong element.
CSS follows a specificity hierarchy. More specific selectors override general ones. For example, #sidebar p
(an ID plus an element) will override styles set just for p
(an element).
Misspellings are easy to miss. Was it .sidebar
or .side-bar
? One hyphen makes all the difference.
Your browser’s developer tools are invaluable for troubleshooting. Right-click the element you’re trying to style and select Inspect. You’ll see all the styles currently applied and which ones are being overridden.
The !important
declaration forces a style to apply regardless of specificity:
p { color: blue !important; }
While tempting when you’re frustrated, !important creates long-term headaches. It breaks the natural cascading of CSS and leads to “specificity wars” where you end up needing multiple !important declarations.
Instead, make your selectors more specific. If .content p
isn’t working, try .content .entry-content p
to be more precise.
Your site needs to look good everywhere. What works on your laptop might break on mobile screens.
Use your browser’s developer tools to simulate different screen sizes. In Chrome, right-click, select Inspect, and look for the device toggle icon.
Before diving into CSS changes, especially extensive ones, back up your site. This isn’t just good advice — it’s crucial protection.
Tools like Duplicator make backups straightforward. Simply create a new backup and choose the Full Site preset.
For extra protection against site-specific errors, I always send backups to the cloud. As you’re creating the backup, choose one of the many cloud storage integrations.
Having this safety net means you can experiment more freely, knowing you can restore everything if something goes wrong.
A five-minute backup can save you hours of troubleshooting. If you notice a CSS mistake, go to this backup and hit Restore.
Even if your backup is in the cloud, Duplicator will download it and restore it. It’ll be like that error never happened!
CSS comes built into your WordPress theme. You can add your own custom CSS through the Customizer (Appearance » Customize » Additional CSS), with a WordPress code plugin like WPCode, or by creating a child theme and editing its style.css file.
WordPress uses both. HTML creates the structure of your pages and posts, while CSS controls how that structure looks. WordPress generates the HTML automatically based on your content, and your theme provides the CSS that styles it.
Here are a few simple examples of custom WordPress CSS:
p { font-size: 18px; }
.button { background-color: #ff6b6b; }
.wp-block-image { margin-bottom: 30px; }
.element-to-hide { display: none; }
.special-text { font-weight: 700; }
You don’t need to learn CSS if you’re satisfied with your theme’s built-in options. However, learning even basic CSS gives you much more control over your site’s appearance and the ability to fix visual problems without waiting for theme updates or paying a developer.
Yes, CSS is one of the core technologies used by all front-end web developers, alongside HTML and JavaScript. It’s an essential skill for anyone building websites professionally.
CSS isn’t some mysterious code that only professional developers can understand. It’s a practical tool that gives you precise control over how your WordPress site looks.
Starting small is the key — change a color here, adjust some spacing there. As you get more comfortable, you’ll find yourself capable of making more complex adjustments.
Remember that every professional WordPress developer started exactly where you are now. They learned by experimenting, making mistakes, and gradually building their skills.
As you get started, keep a backup handy with Duplicator. It rolls back errors in one click, so if something doesn’t work, you can always revert your changes and try again.
While you’re here, I think you’ll like these other WordPress guides:
Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. We only recommend products that we believe will add value to our readers.