WordPress.org

Ready to get started?Download WordPress

Forums

StrapVert
[resolved] Customize background image (6 posts)

  1. d3nd0h
    Member
    Posted 10 months ago #

    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.

  2. Zulfikar Nore
    Member
    Theme Author

    Posted 10 months ago #

    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.

  3. d3nd0h
    Member
    Posted 10 months ago #

    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?

  4. Zulfikar Nore
    Member
    Theme Author

    Posted 10 months ago #

    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 :)

  5. d3nd0h
    Member
    Posted 10 months ago #

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

  6. Zulfikar Nore
    Member
    Theme Author

    Posted 10 months ago #

    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.

Reply

You must log in to post.

About this Theme

About this Topic