WordPress.org

Support

Support » Themes and Templates » StrapVert » [Resolved] Customize background image

[Resolved] Customize background image

  • I am trying to add an background-image to my new site. On the background part, there’s no option to stretch the background-image to fill the browser width. I know a little bit about CSS but I don’t know which part i should customize.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Brian Harris

    @zgani

    Large enough image (1400px+) will fill the background without the need to adjust any code. Smaller images can be tiled to fit the screen again without touching code.

    What image size a re you looking to use? A link to the site would also help.

    If I use the 1400px+ image it will fill the background with the image, what I am trying to do here is to get the part of image that I wanted.

    Actually I am trying to inject this code:
    body{
    background-size: 100% 100%;
    }
    I put that in style.css but nothing works:(

    This is the link to my site.
    a2tworeasurehunt.com

    Anyway, if I have another question should I asked in this thread or should I make a new one?

    Theme Author Brian Harris

    @zgani

    I put that in style.css but nothing works:(

    style.css is not loaded by the theme – its only a placeholder for WordPress to recognize the theme. All styling is done in the files located in the css folder which a loaded automatically via a function callback.

    To make any modifications to the theme and avoid loosing your changes please create a child theme to which you may add any changes you wish to make. You can get a starter child theme here: http://www.wpstrapcode.com/faqs/my-child-theme-does-not-work – remember to change the values to your own though.

    Anyway, if I have another question should I asked in this thread or should I make a new one?

    If your subsequent questions is related then please ask her if not then it is advisable (forum rules) to raise a new thread – new question(ner)(s) in a new thread facilitate the ease of find the answers much quicker 🙂

    Oh, finally I found the use of child theme 😀 Thanks a lot Zulfikar. Now, I will immediately raise a new thread.

    Theme Author Brian Harris

    @zgani

    You are most welcome 🙂

    Closing ticket as resolved but if you have further questions please feel free to raise a new thread or ask here if its the same issue and I’ll re-open the thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Customize background image’ is closed to new replies.
Skip to toolbar