WordPress.org

Support

Support » Themes and Templates » Background image: Only on Homepage – help

Background image: Only on Homepage – help

  • I want a background image to be like a watermark only on the homepage. I was able to get the background in on the theme I created in Artisteer®, but of course it shows on all pages. I am a novice at CSS. But with PHP and SQL, I know what I am looking at but don’t always know what to do with it. So if I created a new “page” template name “home”, and added the graphic there, would that work? And secondly, where would the call for the graphic go, in the style.css? or the new “home” template, or both? I think I can do it, just a little unclear on the complete process. Any help would be greatly appreciated. The site is under construction at subdomain until it’s ready to the main domain. It’s at Noorda

Viewing 2 replies - 1 through 2 (of 2 total)
  • whereever the background is added to, try to use the body class output of .home for the front page in your styles;

    example for the background on the body tag:

    body.home { background: red; }

    if the background is on a div with the css id #wrapper:

    .home #wrapper { background: red; }

    try to use a tool such as Firebug http://getfirebug.com/ to identify the involved styles;
    as this is fundamental css formatting, helping with it in detail is not really supported by this WordPress forum

    Thanks!

    That got me in the right direction! I think I can get this 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Background image: Only on Homepage – help’ is closed to new replies.
Skip to toolbar