Title: Header Background Color
Last modified: August 31, 2016

---

# Header Background Color

 *  Resolved [mprythero](https://wordpress.org/support/users/mprythero/)
 * (@mprythero)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/header-background-color-5/)
 * I was curious if there was a way to change the background color of the header.
   Currently, it is completely transparent, which doesn’t work well color wise with
   the photos in the slider behind it. I tried adding the changes to custom css,
   but that doesn’t work. Is there a better way to go about this? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Jaroslav Svetlik](https://wordpress.org/support/users/jerryscg/)
 * (@jerryscg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/header-background-color-5/#post-7199173)
 * Hello mprythero,
 * You can try adding next code to:
 * **Appearance -> Customize -> Styling -> Custom CSS**
 * `#masthead { background-color: #desired color; }`
 * Best Regards
 *  Thread Starter [mprythero](https://wordpress.org/support/users/mprythero/)
 * (@mprythero)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/header-background-color-5/#post-7199242)
 * Thanks for the suggestion, initially I had been trying
 *     ```
       .header_v1 .sticky-header{
       background-color:rgba(255, 255, 255, .7);
       }
       ```
   
 * But I tried the same color pattern with your class id and it didn’t alter anything.
   Maybe I initially pointed to the wrong aspect when I had originally posted, so
   I am sorry for that. But when I add custom css through firefox console, the change
   works. But when I add the code to the css file or through custom css, it seems
   to be cancelled out by an “inline” style. Thanks again for the help.
 *  [Jaroslav Svetlik](https://wordpress.org/support/users/jerryscg/)
 * (@jerryscg)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/header-background-color-5/#post-7199251)
 * Try with next:
 * `#masthead { background-color: #desired color !important; }`
 * or
 * `#masthead { background-color: rgba(255, 255, 255, .7) !important; }`
 *  Thread Starter [mprythero](https://wordpress.org/support/users/mprythero/)
 * (@mprythero)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/header-background-color-5/#post-7199265)
 * That worked. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Header Background Color’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/agama/1.7.2/screenshot.png)
 * Agama
 * [Support Threads](https://wordpress.org/support/theme/agama/)
 * [Active Topics](https://wordpress.org/support/theme/agama/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/agama/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/agama/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 4 replies
 * 2 participants
 * Last reply from: [mprythero](https://wordpress.org/support/users/mprythero/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/header-background-color-5/#post-7199265)
 * Status: resolved