How Do I Change the Background Color of My Header in WordPress CSS?

Background color of header can easily be changed by using CSS in WordPress. To change the header background color, you need to open the header.php file in your WordPress installation and locate the following line of code:

After locating this line of code, you will need to replace the word ‘h1’ with the header name that you would like to change the background color of. For example, if you would like to change the header background color to red, you would replace the word ‘h1’ with ‘red’.

After making these changes, you will need to save the header.php file and reload your website.