Support » Fixing WordPress » Different Background for Home.php

  • 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

    I did try if_home to no avail either.

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

    (@esmi)

    Forum Moderator

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

    Moderator cubecolour

    (@numeeja)

    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/

    btw – It looks like you’re on an outdated version of WordPress, so it would be a good idea to think about updating.

    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

    (@numeeja)

    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

    Michael

    (@alchymyth)

    Forum Moderator

    try <body class="home">

    not really a WordPress problem 😉

    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.

    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.