Black Friday Sale! Get up to $40 off GP Premium!Learn more

Reply To: Adding custom class to entry-content?

Home Forums Support Adding custom class to entry-content? Reply To: Adding custom class to entry-content?

#180021
Tom
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);
}