I need to apply CSS to the masthead on all pages except the homepage in the Wordpress Twenty Sixteen theme. At the moment I am manually doing it like:
.page-id-24 #masthead {
padding: 5%;
background-image: url(...);
background-size: 1400px 500px;
height: 10px;
margin-bottom: 5%;
}
.page-id-14 #masthead {
padding: 5%;
background-image: url(...);
background-size: 1400px 500px;
height: 10px;
margin-bottom: 5%;
}
Is there any way I can write something like #masthead not:(home) {...} to drastically speed up the process and change the masthead on all pages except the homepage.
Thanks,
Jack
:not()#masthead:not(.home-page-masthead) { /* styles */ }