Home » Categories » Managed WordPress » Plugins and Themes

Change the theme background color in WordPress

The background color of a WordPress site can be changed by modifying the CSS.

  1. Before making any changes to a WordPress theme, add a child theme.
  2. Log in to WordPress.
  3. Go to Appearance > Editor.
  4. Enter the CSS to change the background color. Below is sample code:

            .site {
                background-color: #XXXXXX;
            }
    • .site is the css class for the whole site.
    • XXXXXX is the hex code for the color you want to use.
  5. Click Update File.
1 (3)
Article Rating (3 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
What is CoBlocks?
Added on Mon, Nov 16, 2020
Add a CoBlocks Media block in WordPress
Added on Mon, Nov 16, 2020
Add a CoBlocks Food & Drinks block in WordPress
Added on Mon, Nov 16, 2020
Activating and deactivating plugins in WordPress
Added on Mon, Nov 16, 2020
Blocklisted plugins
Added on Mon, Nov 16, 2020