Title: Background Colors
Last modified: August 19, 2016

---

# Background Colors

 *  Resolved [patty25](https://wordpress.org/support/users/patty25/)
 * (@patty25)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/)
 * I hope someone can help me please.
 * I have a gradient background on my website and I changed the color to all black
   on one page but I need to do it on another.
 * This is how I did it on the one page…
 * <body <?php body_class(); ?>
 * body.category-events { background-color:#123456;
    background-image: none; }
 * But now I need to do it on another page that isn’t a category page. On this page:
   [http://www.currentcorp.com/home/law-enforcement-products/](http://www.currentcorp.com/home/law-enforcement-products/)
 * Any ideas how I would do this?
 * Thank you!

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

 *  Thread Starter [patty25](https://wordpress.org/support/users/patty25/)
 * (@patty25)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516139)
 * anyone???
 *  [izvarinskij](https://wordpress.org/support/users/izvarinskij/)
 * (@izvarinskij)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516158)
 * Press ctrl-u and look for body tag, which classes it has:
 * `<body class="page page-id-1265 page-child parent-pageid-20 page-template page-
   template-product_detail-php">`
 * Most likely you need this style:
    `.page-id-1265{ … }`
 * Or `.page-template`
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516159)
 * If you want to style that page, and that page only, you’ll have to do it based
   on ID, the following should suffice..
 *     ```
       body.page-id-1265 {
       /* Your CSS */
       }
       ```
   
 *  Thread Starter [patty25](https://wordpress.org/support/users/patty25/)
 * (@patty25)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516267)
 * but if i am using perma-links how does that work?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516275)
 * The page slug/name isn’t appended to the class, so you have to rely on ID, simply
   because that’s what’s available to you.
 * The example above should be accurate, i took the ID from your page source code.
 *  Thread Starter [patty25](https://wordpress.org/support/users/patty25/)
 * (@patty25)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516286)
 * Thanks so much!! Your awesome!! I was starting to pull out my hair!
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516295)
 * You’re welcome. 🙂

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

The topic ‘Background Colors’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/background-colors-1/#post-1516295)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
