Center background image with no repeat

Discussion in 'GeoCraft WordPress Theme' started by chndr, Apr 4, 2013.

  1. chndr

    chndr Member

    Joined:
    Feb 27, 2012
    Messages:
    47
    Likes Received:
    1
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Firstly,
    go to Appearance > General > Body background image and remove your background image from there.

    After this paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    html {
    background: url(Enter your image address here) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }
    
    This will solve your issue.
     
    chndr likes this.
  3. chndr

    chndr Member

    Joined:
    Feb 27, 2012
    Messages:
    47
    Likes Received:
    1
    Gourav,

    Is it not possible with the picture you upload by Appearane >General ???

    Your solution work fine but only for the home page. When I switch to another page my background turns into white. I want the background centered with no repeat on every page.

    Thank you
     
  4. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Please do let us know your website link.
    I will check and resolve your issue.
     

Share This Page