How to Customize Your WordPress Website’s CSS

Last Updated on May 16, 2024 by 43 Comments

Editorial Note: We may earn a commission when you visit links on our website.
How to Customize Your WordPress Website’s CSS
Blog / Tips & Tricks / How to Customize Your WordPress Website’s CSS

No matter what theme you choose for your WordPress website, there will beΒ other sites using that very sameΒ design. And even with the extensive customization options provided by many themes nowadays, you may want to make your site stand out even more.

To really make your site look the part, you need to go beyond the standard customization offered through a theme’s options or settings. Customizing your WordPress CSS will enable you to tweak your design so that it is completely unique to your site.

This article will look at several ways you can customize your WordPress CSS, including using advanced themes such asΒ Divi, creating and customizing child themes, using the built-in WordPress Customizer, and WordPress CSS plugins.

CSS: The Basics, and How WordPress Uses It

First things first: CSS stands for Cascading Style Sheets,Β which may not make any more sense to you than the acronymΒ did. So, let’s break it down.

A style sheet is a document describing the styles (such as font, colors, etc.) to be used for the presentation of another document. In our case, we are styling web pages.Β The β€œcascading” part of the name is where it gets really powerful. Web pages can be styled by multiple style sheets, like a cascading waterfall, with the lower sheet adding to or replacing the styles of a higher one. This is important, because it’s how you will be able to add your own styles without editing the original ones provided by your theme – we’ll get to that shortly.

CSS enables you to separate the structure of a web page from the way it looks. All the styling information is contained in separate CSS files, written as rules that get read by the web browser, and applied to the page. The rules describe the HTML element (called the selector) and the styles to apply (called the declarations) as shown in the image below:

CSS selector and declarations

CSS rule structure (from W3Schools)

As simple as this looks, CSS can be used to modify just about any aspect of the way a webpage looks – including layout, colors, fonts, and even animations. For more details, you could start with this CSS tutorialΒ from W3Schools, which goes through the syntax.

Most WordPress themes will include the CSS used to present your site in a file called style.css. If you open that file, you’ll see a full list of styling rules for your theme. Whatever you do, don’t make any changes in this file! When next you install an update to your theme, those changes will be overwritten, setting your theme’s styles back to the designer’s originals.

There are several ways to add custom CSS to your WordPress theme so that your changes will survive a theme update. Let’sΒ dive in!

How to Customize Your WordPress CSS

Now that you better understand what CSS is and how WordPress themes use it, let’s take a look at your options for customizing CSSΒ (in no particular order), and discussΒ the advantages and disadvantages of each method. By the time we’re finished, you won’t exactly be a CSS wizard, but you will be able to figure out the best method for making the kinds of changes you want in your theme.

Option #1: Customize CSS Using a Child Theme

If you use a child theme to customize your CSS, those theme updates we mentioned before won’t be a problem. A theme update will affect the β€˜parent’ theme, leaving the changes in yourΒ child theme untouched. Many theme developers include a child theme for you these days, which you can modify as needed.

Creating a child theme is pretty simple – it involves creating a folder on your web host whichΒ includes a style.css file that listsΒ the parent theme as the template, and imports the parent theme’s style.css (remember the β€˜cascade’ of style sheets?). We have a complete tutorial on how to create a child theme you can check out, which will step you through the process.

Once you have created your child theme correctly and activated it, you can begin to customize your theme. The quickest way will be to edit your style.css file, which can be accessed in two ways.

The first way is to use the editor included within the WordPress administration dashboard, by clicking Appearance > Editor. The Editor page will display a list of files vertically on the right hand side of the page. Your style.css file will be towardsΒ the bottom of the list, and clicking on theΒ Stylesheet option will load and display yourΒ style.css file. You can add your changes to the CSS and click the Update button to save them.

Editor with child theme

The WordPress editor can be used to add styles to your child theme’s style.css file.

The other way to access your style.css file (which we recommend) is to browse through the files on your hosting provider using FTP or a file manager. The child theme folder you created willΒ be in wp-content > themes. You can use any text editor to edit the style.css file.

To ensure your changes show up, you need to make sure you are using the same β€˜selectorsβ€˜ as the parent theme. You can use the parent theme’s style.css file as a reference, or use your browser to inspect individual elements to determine the selectors being used.

The greatest disadvantage of using a child theme is the need to be somewhat comfortable with handling files on your server. On the plus side, using a child theme gives you complete control over the appearance of your website. Our guide to WordPress theme customization will show you some other tricks you can use with a child theme.

Although we can step you through the process of creating a child theme, for some people that seems like a lot of trouble just to make some styling changes. Fortunately for you,Β there are ways to add custom CSS without creating a child theme – with that in mind,Β let’s take a look at our next option.

Option #2: Customize CSS Using the Customizer

As far back as WordPress 3.4, theme developers have been able to tap into the WordPress Customizer. The Customizer enables a site owner or administrator to adjust a theme’s settings – previewing them before applying them to the website. Many themes now make use of the Customizer to give you access to options and settings.

What we’re interested in today is the ability to add custom CSS, and fortunately,Β many themes enable that as an option in the Customizer. You can check your theme’s documentation to verify if it is available.

Custom CSS in the WordPress Customizer

WordPress theme developers can enable their theme to offer CSS customization in the WordPress Customizer.

First, go to the Customizer in your WordPress administration dashboard by visiting Appearance > Customize. The Customizer will have a menu on the left hand side. If your theme has enabled custom CSS, somewhere near the bottom of the menu will usually be a Custom option, and clicking that will give you a text box where you can add custom styles. The preview on the right will update to show you the effect of your changes, and you can click the Save & Publish button when you are finished.

The advantage of using the Customizer is its simplicity,Β and you don’t have to install anything once your theme has enabled its use. You can also preview all your changes before publishing them. The disadvantage of using the Customizer is you still need to be comfortable adding CSS rules – and not all themes have it enabled in this way. If you do decide to switch themes, you may find yourself having to look for another way to customize your CSS.

Some of the plugin options available for custom CSS make this process of editing CSS even easier, so let’s take a look!

Option #3: Customize CSS Using CSS Plugins

The advantage of using a plugin for CSS customization is that you keep the plugin and its CSS even if you change your theme. That has its tradeoffs, however, as CSS styles added to one theme may not be suitableΒ for another.

With that said, let’s check out your plugin options!

Custom CSS in Jetpack (Free)

Jetpack plugin
The freeΒ JetpackΒ plugin is installed on well over one million WordPress websites, which may well include yours. It brings features of the WordPress.com hosted platform to self-hosted websites, and for today’s discussion, that includes a Custom CSS module. Once the module is activated in the Jetpack dashboard, a Custom CSS Editor is available – enabling you to customize your theme without creating a child theme.

You access the editor by going to Appearance > Edit CSS. The editing window has a placeholder message, which you can either delete, or add your changes after. Other options are available to you, such as use of a preprocessor (likeΒ Less or Sass) for more advanced CSS usage, replacing the theme’s CSS with yours instead of just adding to it, and applying your CSS to the mobile theme. Jetpack also has a preview button, which enables you to see your changes in action before you save. Additionally, you can switch back to an earlier version of your custom CSS.

The Custom CSS module is a simple option if you already have Jetpack installed, but if you’re not using other Jetpack features, it may be a bit much to install Jetpack just for this module.

Simple Custom CSS (Free)

Simple Custom CSS plugin
If instead you want a standalone option, Simple Custom CSS is a good choice. This free plugin, used on over 200,000 websites with a 4.9 star rating, will definitely help you get the job done to customize your WordPress CSS.

This plugin requires no configuration – just install and activate. To edit your CSS, go to Appearance > Custom CSS in the WordPress administration dashboard. Add your custom CSS to the editor on that screen, and click the Update Custom CSS button to save your changes.

Using this plugin is similar to editing the style.css file in that there is no preview. You have to save your changes to see the effect on your site. Unlike Jetpack, there is no rollback to previous versions.

CSS Hero (From $14 per Year)

CSS Hero plugin
The final plugin option we are looking at today is a premium plugin called CSS Hero. Starting at $14 per year for a single site, this plugin enables you to customize your theme using an easy-to-use point-and-click interface.

Designed to work best with dozens of compatible themesΒ (such as our own Extra magazine theme),Β CSS Hero gives you full control over all elements of your theme. For themes not on their list, you can use Rocket Mode to enable the CSS Hero customization.

CSS Hero removes the need to understand CSS syntax by turning styling into a visual point-and-click process – even for more complex effects, such asΒ transitions. You can also preview your changes live, and go back to a previous revision.

If you want to tweak your WordPress CSS completely but have no CSS knowledge, CSS Hero is a great full-featured option for customizing your site – especially if you’re using one of their recommended themes.

Option #4: Customize CSS Using the Divi Theme

There are WordPress themes that aim to provide you with complete control over all your website’s CSS, providing advanced control to enable both CSS newbies and advanced designers to customize the look of their site with ease. Our Divi theme is one of the most advanced on the market and isΒ our top pick (naturally!) if you want to be able to customize your WordPress CSS.

Divi provides you with tons of customization options for all the elements on your website, but if you really need to add custom CSS, there are two ways to do it. You can apply CSS to the entire site by using the powerful ePanel, which has a Custom CSS option. Alternatively,Β if you want to apply changes just to a specific module on a page, you can useΒ Advanced Design Settings, which has a Custom CSS tab.

Divi ePanel Custom CSS

Divi’s ePanel provides a Custom CSS field for global CSS changes.

To use the ePanel, within the WordPress administration dashboard go to Divi > Theme Options. On the General Settings tab, scroll to the bottom, where you will find a Custom CSS field. Enter your custom CSS and click Save. Presto, change-o! Your CSS will now be reflected on your site, just like editing a style.css file. We’ve also provided you with some further examples of CSS customizations you can try in the ePanel.

While each Divi module will have its own General and Advanced settings, enabling you to customize just about everything, they all also have a Custom CSS tab for you to enter your own CSS. To find that tab, edit a module, row, or section to see the settings popup. On the Custom CSS tab, you will see separate fields for each structural element of the module, so you can apply your changes individually.

The advantages of using Divi’s ePanel and Custom CSS tabs areΒ avoiding the need to create a child theme, and easily targeting CSS to individual modules on specific pages. An advanced theme such asΒ Divi gives you superior control over your WordPress CSS with little hassle.

Conclusion

While you know your content is great, you want to ensure your site’s design stands out from the crowd, even if you are using a popular theme. With CSS you can customize your site’s design so that it looks completely different, even when compared to others using the same theme.

Part of the power of WordPress is having access to multiple ways to solve any problem. There are several ways you can customize WordPress CSS:

  1. Use a child theme.
  2. Use the Customizer.
  3. Use a CSS plugin.
  4. Use an advanced theme,Β such asΒ Divi.

What experience have you had in customizing WordPress’ CSS? We would love to hear your favorite tips and tricks – subscribe to the comments section below and let us know!

Article thumbnail image by Max Griboedov, ProStockStudio / shutterstock.com

Divi Cyber-monday Sale

It's The Divi Cyber Monday Sale! Save Big For A Limited Time πŸ‘‡

Save big on Divi and Divi products for a limited time.

Access The Sale
Divi Cyber-monday
Premade Layouts

Check Out These Related Posts

Splice Video Editor: An Overview and Review

Splice Video Editor: An Overview and Review

Updated on March 10, 2023 in Tips & Tricks

Video is a valuable form of content for social media. Unfortunately, creating quality videos is usually a long process that involves moving mobile footage to a desktop app for editing. However, mobile editing is on the rise. Apps such as Splice Video Editor make it possible to efficiently create...

View Full Post
How to Use Font Awesome On Your WordPress Website

How to Use Font Awesome On Your WordPress Website

Updated on September 16, 2022 in Tips & Tricks

When given the choice between using a vector icon or a static image, it’s a good idea to go with the vector. They’re small and fast to load, and they can scale to any size without a loss of resolution. Font Awesome is a superb library of vector icons that you can use on your websites,...

View Full Post

43 Comments

  1. Sorry guys, Microthemer, SiteOrigin, CSS Hero which saves the CSS changes? in a separate file? Ps: I currently use the child theme + Style.css

    • If you’re looking for a solution that saves CSS changes in a separate file, Microthemer, SiteOrigin, and CSS Hero all offer that functionality. When you make CSS modifications using these tools, the changes are typically saved in a separate CSS file, rather than directly in your theme’s style.css file. This can be beneficial for organization and easier management of your custom styles. However, if you’re already using a child theme with a style.css file, you can continue to do so and manually add your CSS modifications there. It ultimately depends on your preference and workflow.

    • There are lots of different ways to get to the same goal, Andrea. If you’re loving editing the CSS directly, go for it!

      However, regardless of whether you’re using a plugin or not, you should always use a child theme when editing your files.

  2. I just wanted to add here. There’s a lot of option here specially sites running in WordPress, building/creating custom css is simple. Most word press themes usually support adding custom css without having to create or add additional plugins.

    • Definitely – and that’s why we’ve tried to provide a few different options to consider. Thanks for your insight πŸ™‚

  3. Am I the only one who does not understand the Divi Module’s Custom CSS section. It’s broken down in a number of different sections like: Before; After; Main Element; etc etc.

    Perhaps someone could explain or point me to a document explaining how that works.

    • Hi Briannie,

      If you click inside one of the sections it will show you which selectors–in orange text next to the box title–the css you place there will affect. This removes the step of finding the right CSS selector. You can simply enter in something like text-align: center; and it will affect the selector or selectors associated with that css box.

      Best,

      Nathan

  4. Im a WordPress and I dont really know what a selector is. Does anyone have any recommendations on any articles or books I could read to learn how to modify CSS without using a plugin? I use the Divi theme and I would like to be able to use the Advanced tab to modify my CSS.

  5. CSS Hero. Absolutely amazing, especially with Divi. It definitely cuts my workflow in more than half. Well done!

    • Thanks, Juliette. πŸ™‚

    • Don’t get me wrong, if you have 20/20 vision, CSS Hero is a great product. But, the poor UX (font size/colors) they have chosen makes a great product totally unusable, at least in my case.

      They say they are going to fix it, but I decided not to wait (not the first time I heard that), and I got a refund.

      Later someone else recommended Microthemer Lite [https://wordpress.org/plugins/microthemer/], so I tried it out, and boy am I glad they did.

      I am a site architect and not a developer, so CSS has always been a bit of a black art to me; a little bit voodoo and hocus pocus.

      But I just bought the Microthemer paid version, and to say I am totally impressed with it would be a real misunderstatement. Not only is it easier, and I can create edits faster, but I am also learning CSS automatically, as I go along.

      I love it love it love it. Its just awesome!

      Give it a try. You won’t be disappointed.

  6. Great article Tom. While creating child theme of a fast loading framework like Divi, once should not customize it heavily as sometimes messed up CSS can cause high load times and could ruin the design. After editing CSS, the website can be tested on GTmetrix and Pingdom for load times.

    Thanks!

    • Thanks for your insight Tauqir πŸ™‚

  7. Thank you so much! Anyone like you who can summarize what CSS is about so well is amazing. It took me a couple of years to stumble upon, but I finally found a way to control the height of the Divi slider.

    • Good stuff, Jeffrey! Thanks for your kind words!

  8. If only themes and plugins would be created using proper CSS. Then overriding styles wouldn’t be as much of a problem as it usually is, because a lot of developers use !important in their declarations to override their own CSS.

    • While I can’t claim to know how all developers create their CSS, I’ll agree that using !important is somewhat annoying (and bad practice!)

      Thanks for your comment!

  9. One word: Microthemer – everything else compared to it is junk!

    • @Nick I have to say, I just downloaded the lite version of Microthemer from the Repo, and I have to say I think you are right. Awesome!

    • Thanks for the suggestion, Nick!

  10. I prefer using a child theme. Seems to be the most solid way to me…

    • I agree. I’ve always found the WordPress Customizer somewhat temperamental.

      I definitely prefer to have a dedicated style.css file that I know won’t go away if anything should happen to the database.

    • Ursula, you should always use a child theme when making customisations – it’s glad to see you’re using sound practices!

  11. Although Elegant Theme Support Team always asks for the modifications to take place in a child theme, I stubbornly choose the Simple Custom CSS method.

    • As do others who have commented, Bill! I say, whatever method works for you!

  12. What do you guys feel about site Origin’s CSS editor?

    I am thinking about it as my CSS is not strong and it seems to be getting good reviews.

    • Martin, it seems as though another commenter above (Terence) is a fan! The best thing to do is try it out. You can always uninstall it afterwards if it’s not right for you.

  13. I think you missed out the best free CSS editor of them all ~ SiteOrigin CSS.

    It has many of the same point and click features of CSS Hero, but with a far more legible interface and works pretty much the same way.

    The hardest part of editing your site’s design using CSS is usually finding the correct selector to use. The powerful inspector that comes with SiteOrigin CSS, just like CSS Hero, makes this easy.

    While viewing a full preview of your site, just click on an element and it’ll help you identify the best selector to use to target that element.

    Oh, and did I mention its free?

    • You did! πŸ™‚ Thanks for your suggestion, Terence!

  14. TOP NICE article – thanks a lot πŸ™‚

    • Thanks, Monika!

  15. I enjoy using themes that already provide a css plugin. I like really like Simple Custom CSS as a stand alone. So much more convenient than creating child themes. Great article, many thanks.

    • Thanks for the kind words, Angela!

  16. Visual CSS Style Editor seems to be good. Site Origin CSS is also ok.

    • Thanks, Anders!

  17. I would also suggest this very simple plugin:

    Per page add to head

    If you are not using the DIVI theme and need to do some extra special CSS for a certain page.

  18. Thanks for sharing πŸ™‚

    • No problem, Jaket!

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

πŸ‘‹ It's The Divi
Cyber Monday Sale!
Get The Deal
Before It's Gone!
Get Started With Divi