How to Change the Color of Your WordPress Website With CSS

In case you’re looking for a fast, easy and free way to change the color of your website’s text, you can’t miss the potential with CSS, or Cascading Style Sheets. While Sass has emerged as the successor to CSS, you can still use the versatile CSS to change the color of text on your site. In this article, we will show you how to change the color of your WordPress website’s text the easy way with CSS.

Find The Main Color You Want To Use

Before you begin changing the color of your site’s text, it’s important to first decide what you want to use as the base color. Do you want to use a blue color for your site’s background? Perhaps you want to highlight important information on your site with an orange color? It’s up to you, but it’s important to keep in mind the various tones available so you don’t end up with an ugly garish color clash. For this tutorial, we will use a nice pale blue as our basis color.

Install And Activate CSS

To apply CSS changes to your site’s text, you need to do two things. First, you need to install the CSS files in your WordPress website, and then you need to activate the style sheet in your WordPress dashboard. Let’s do both those things now.

If you followed our previous article How to Create a WordPress Blog in 2019, you already have CSS installed. If you’re just starting out, you can either download the archive containing all the CSS files we used or you can click here to view our previous tutorial on installing and activating WordPress’ CSS.

Add Some Classes To The Main Body Of Your Pages

Now that you have your base color set, it’s time to add some color to the main body of your pages. To do this, you need to add a few classes to the element of your pages. Inside the tag you will place the following classes:

  • body-wrapper
  • container
  • theme-default
  • text-color-gray
  • main-color
  • heading-color
  • footer-color

These classes will give you a few variations you can play around with to see how different colors look on your site. For this tutorial we will use the Google Chrome Developer Tools to play around with the classes and see how the various colors look on our site.

Change The Main Color Of Your Posts & Pages

Once you have installed and activated the CSS on your site, it’s time to modify the color of your posts and pages. As we mentioned above, your posts and pages are made up of

elements. Inside these pieces of content you will place the class attribute main-color.

So if you want to change the main color of all your posts and pages to orange, you will need to add the following code to the

tag:

I love to code!

Varying text colors on your site is very easily do-able with the right combinations of colors and text. By adding a few

tags with different backgrounds and color values, you will easily be able to create a unique look and feel for your site. Want to try out a purple background for your

tags? Go for it! Just remember, the more you push the color limits the more vibrant and lively your site will look. We hope this article gave you a good idea of how to change the color of your site’s text with CSS. If you found this article helpful, don’t forget to bookmark it and visit us again soon for more tips and tricks on making your WordPress site look awesome!