How to add background img in wordpress3.5.1

How can I add a background image or color to my Wordpress 3.5.1?
My Wordpress theme doesn't have "background" in the Appearance widget in my Wordpress dashboard.

Solutions

Of course you can use multiple solutions for that. I will give 2 sollutions.

  1. In your file .css set the backround-color like this:

    .body{ background:#000000; }

  2. You can use a class to handle that:

    .backround { position:absolute; backround:#000000;//or, instead #000000; use url(path_to_image); width: 100%; z-index: 999; min-height: 30px; left:0; padding-top:10px; }

This is it!

Similar questions

Wordpress generate <img class="someclass alignleft"> instead of <img class="someclass" align="left" />
I just upgraded my wordpress site to 3.6.1. Then I realize that there's something wrong with the tag. It generates incorrect html tag which is: which is supposted to be It only happen if I use the theme I create myself, but if I use Wordpress default theme like Twenty Thirty, this issue doesn't happen. Then I suspect there's something wrong with my...
Replace large img src with thumbnail img woocommerce products loop
I'm using woocommerce, and by default it use the large image in the product loop. The goal is that I want to replace each large product image (1000x1000px) with the thumbnail image (300x300px) which is contained in the same folder as the large image. Here is the html code: With a total of 24 products per page. And the jQuery : I tried to put the jQ...
WordPress - custom img input field that would send <img> to editor
How to create a custom filed, which uses media library image picker. In the WordPress editor.
How can i move the img inside div without accesing all the img in the page?
I have a problem fixing a column,the img's inside will not follow the other divs. I can align img only if i CSS all the img in the page. Like this : img { exemple }; I put all the img in a div with a class and it wont move. I am editing wordpress theme.Hope you can help me somehow. Thank You ! Here is the exemple : https://jsfiddle.net/azfwuzad/20/
What is the best way to convert the img tags into amp-img?
I have a wordpress website and the images that come from the the_content() function have the <img> tag, however for the AMP pages they should be written like this: <amp-img>. What's the correct way of doing that in WP?
Using featured img as div background
I have a full width/height header div that I want to use the featured image in, but I'm having trouble getting the div to load a default image if no featured image is set in a blog post. I figured I could do something like this, but it seems like its still using the first image to load into the div (and not the default img im setting) what am I doi...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.