Home › Forums › Support › Adding custom class to entry-content? › Reply To: Adding custom class to entry-content?
March 17, 2016 at 10:38 pm
#180021
Lead Developer
Lead Developer
If the homepage is the only page you don’t want that CSS to apply to, you can do this:
body:not(.home) div.entry-content {
background: #fff;
padding: 22px 20px 30px;
margin-bottom: 43px !important;
border-top: 4px solid #F0B400;
-webkit-box-shadow: 0 1px 5px 0 rgba(0,0,0,0.14);
-moz-box-shadow: 0 1px 5px 0 rgba(0,0,0,0.14);
box-shadow: 0 1px 5px 0 rgba(0,0,0,0.14);
}