WordPress.org

Ready to get started?Download WordPress

Forums

Background image: Only on Homepage - help (3 posts)

  1. bigzepfan
    Member
    Posted 2 years ago #

    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

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

    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

  3. bigzepfan
    Member
    Posted 2 years ago #

    Thanks!

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

Topic Closed

This topic has been closed to new replies.

About this Topic