WordPress.org

Support

Support » Themes and Templates » Adding image to background, How? v. Autofocus

Adding image to background, How? v. Autofocus

  • Hey guys,

    I believe that the background of Autofocus is just set to white, not sure if it’s considered an image etc. but how do I add my own? I don’t just want to change the color, which i believe you can do in the stylesheet, but how would I add an image?

    website is williambordonaro.com

    Looking to replace the white background with an image. Additionally, how can I figure out what size to make the background image in order for it to look like it fits correctly?

Viewing 4 replies - 1 through 4 (of 4 total)
  • still looking to figure this out.

    Any advice on how to do this?

    buddhapax
    Member

    @buddhapax

    Open the file style.css you’ll find in /wp-content/themes/autofocusplus/ and look for

    /*	Global
    -------------------------------------------------------------- */
    html {margin:0;padding:0}
    body {color:#999999;background-color:#FFFFFF;font-size:12px;line-height:22px;font-family: helvetica, arial, sans-serif;}
    [...]

    in body {}

    add background-image: url(‘http://www.WHERE_YOUR_IMAGE_IS/image.EXT’);

    So you’ll have something like:

    body {color:#999999;background-color:#FFFFFF;font-size:12px;line-height:22px;font-family: helvetica, arial, sans-serif;background-image: url('http://www.mysite.com/hello.jpg');}

    For background-image properties (like position, repetition, etc…) have a look of: http://www.w3schools.com/css/css_background.asp

    I can’t figure out why this isn’t working for me. this is what I posted:

    body{background:#9CADA6;
    background-image:url(‘http://nielsen10973.c3.cmdwebsites.com/blog/wp-content/uploads/2010/06/blog-background-blue.jpg’);color:#444;font:1.4em/1.6 “Hoefler Text”, “Georgia”, Georgia, serif, sans-serif;margin:0;padding:0}

    and the background is still white. Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding image to background, How? v. Autofocus’ is closed to new replies.