How to Easily Add Custom CSS to Your WordPress Site

199

Sometimes you may find yourself needing to add Custom CSS in your WordPress site. Perhaps it’s because you’re following a tutorial on WPBeginner. If using FTP is too confusing, then there is an easier way to add CSS on your site. In this article, we will show you how to add custom CSS to your WordPress site without editing any theme files.

Video Tutorial

Subscribe to WPBeginner

If you don’t like video tutorials or want to move at your own pace, then continue reading the instructions below.

Method 1: Adding Custom CSS Using Theme Customizer

Since WordPress 4.7, users can now add custom CSS directly from WordPress admin area. This is super-easy and you would be able to see your changes with a live preview instantly.

Head over to Themes » Customize page.

Launching theme customizer in WordPress

This will launch the WordPress theme customizer interface.

You will see your site’s live preview with a bunch of options on the left pane. Click on the Additional CSS tab from the left pane.

Additional CSS option in Theme Customizer

The tab will slide to show you a simple box where you can add your custom CSS. As soon as you add a valid CSS rule, you will be able to see it applied on your website’s live preview pane.

Adding custom CSS in theme customizer

You can continue adding custom CSS code, until you are satisfied with how it looks on your site.

Don’t forget to click on the ‘Save & Publish’ button on the top when you are finished.

Note: Any custom CSS that you add using theme customizer is only available with that particular theme. If you would like to use it with other themes, then you will need to copy and paste it to your new theme using the same method.

Method 2: Adding Custom CSS Using a Plugin

This method requires you to install a plugin. It is particularly useful for users who are not using WordPress 4.7 or later versions of WordPress.

First thing you need to do is install and activate the Simple Custom CSS plugin. Upon activation simply go to Appearance » Custom CSS and write down or paste your custom CSS.

Simple Custom CSS

Don’t forget to press the ‘Update Custom CSS’ button to store your CSS.

You can now view your website to see the custom CSS in action.

Note: Another advantage of using this method is that your custom CSS will be available even when you change your theme.

Using a Custom CSS plugin vs Adding CSS in Theme

Both methods described above are recommended for beginners. Advanced users can also add custom CSS directly to their themes.

However, adding custom CSS snippets into your parent theme is not recommended. Your CSS changes will be lost if you accidentally update the theme without saving your custom changes.

The best approach is to use a child theme instead. However, many beginners don’t want to create a child theme. Apart from adding custom CSS they really don’t know how they will be using that child theme.

Using a custom CSS plugin allows you to store your custom CSS independant from your theme. This way you can easily switch themes and your custom CSS will still be there.

Another great way to add custom CSS to your WordPress site is by using the CSS Hero plugin. This wonderful plugin allows you to edit almost everything in your WordPress site without writing a single line of code.

Editing custom CSS with CSS Hero plugin for WordPress

We hope this article helped add custom css to your WordPress site. You may also want to see how our guide on how to create a site-specific WordPress plugin to store your custom code snippets.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.