WordPress.org

Ready to get started?Download WordPress

Forums

Different Background for Home.php (8 posts)

  1. vperson
    Member
    Posted 2 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

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

  3. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    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.

  4. vperson
    Member
    Posted 2 years ago #

    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!

  5. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    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

  6. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    try <body class="home">

    not really a WordPress problem ;-)

  7. vperson
    Member
    Posted 2 years ago #

    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.

  8. vperson
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic