How to make the background image doesn't repeat?

Discussion in 'ClassiCraft WordPress Theme' started by alnaami, Jan 6, 2014.

  1. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    Hi there,

    I have requested to change the background image and the answer was provided in this thread http://www.inkthemes.com/community/threads/how-to-change-the-background-image.8512/ ..
    Thanks for that answer. But if the page has a lot of content, the background image would repeat. How can I make sure the background doesn't repeat? I. e. if the content is a lot where the user would need to scroll up and down, the background image should just stay stationary and the rest of the page would scroll up and down as needed.

    Thanks,
    Mike
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Firstly go to Settings > Theme Option > General Settings > Background Image

    and remove image from there.

    Now,

    Paste this code in Custom CSS
    Settings > Theme Option > Styling Option > Custom CSS

    Code:
    html, body {
    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;
    } 


    Thanks & Regards
    Gourav Shrivastava
     
  3. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    Thank you very much. That's exactly what I needed.
     
  4. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    Hey Gourav,
    Another related question ... How can you make this background image clickable? And where can I set the URL which I'd like this image link to point to?
    Thanks,
    Mike
     
  5. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Unfortunately there isn't a way to do that with our theme unless you custom code something up. Sorry.


    Thanks & Regards
    Gourav Shrivastava
     
  6. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    Hi Gourav,

    I have noticed the solution provided only works to set the background image for the home page only. Once the user navigates to another page, the page doesn't show up there. Do we need to setup the background for each template or page etc...?

    I look forward to your update.

    Thanks,
    Mike
     

Share This Page