Title: Different Background for Home.php
Last modified: August 20, 2016

---

# Different Background for Home.php

 *  [vperson](https://wordpress.org/support/users/vperson/)
 * (@vperson)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/)
 * I am looking to have a different background on my homepage.
    I added the code:
 *     ```
       <?php
       if ( is_front_page() ) {
          <body home>
       } else {
           <body>
       }
       ?>
       ```
   
 * And my CSS for this area is:
    [http://craigzuber.com](http://craigzuber.com)
 * I did try if_home to no avail either.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524602)
 * Try using Firefox with the Firebug add-on for this kind of CSS work.
    [http://getfirebug.com/](http://getfirebug.com/)
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524618)
 * It looks like you are using the Revolution 2 theme. Revolution Themes is now 
   StudioPress. As it is a commercial theme, support is handled at the vendor’s 
   forum – in this case [http://www.studiopress.com/support/](http://www.studiopress.com/support/)
 * btw – It looks like you’re on an outdated version of WordPress, so it would be
   a good idea to think about [updating](http://codex.wordpress.org/Updating_WordPress).
 *  Thread Starter [vperson](https://wordpress.org/support/users/vperson/)
 * (@vperson)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524621)
 * I am aware of all of these facts. But I have to work with what I have. I cannot
   redo the whole site to get with StudioPress. They have no support for their old
   users anyway. And as far as updating, updating won’t solve this problem. Thanks
   though!
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524661)
 * It is still a good idea to keep up to date with the current WordPress version
   as vulnerabilities discovered in previous versions of WordPress are patched in
   newer versions.
 * I believe you can still post on the StudioPress ‘general discussion’ area to 
   ask about how to get help with your modification.
 * Another btw/fyi: I believe the Revolution Themes were originally available before
   WordPress included a native thumbnail function, so included a script called timthumb.
   If you are not aware of the vulnerability which has been discovered in timthumb,
   you can check whether your site is affected with the [timthumb vulnerability scanner plugin](http://wordpress.org/extend/plugins/timthumb-vulnerability-scanner/)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524684)
 * try `<body class="home">`
 * not really a WordPress problem 😉
 *  Thread Starter [vperson](https://wordpress.org/support/users/vperson/)
 * (@vperson)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524735)
 * > Another btw/fyi: I believe the Revolution Themes were originally available 
   > before WordPress included a native thumbnail function, so included a script
   > called timthumb. If you are not aware of the vulnerability which has been discovered
   > in timthumb, you can check whether your site is affected with the timthumb 
   > vulnerability scanner plugin
 * I was able to run the scan and I am good to go.
 * <body class=”home”> did not work either.
 * Thanks for helping guys! It is all really appreciated.
 *  Thread Starter [vperson](https://wordpress.org/support/users/vperson/)
 * (@vperson)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524882)
 * I was able to fix this using two headers and also creating a new div under the
   body. With a little adjustments to the margins everything lined up.

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

The topic ‘Different Background for Home.php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [vperson](https://wordpress.org/support/users/vperson/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/different-background-for-homephp/#post-2524882)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
