WordPress.org

Support

Support » How-To and Troubleshooting » How to change wordpress theme background?

How to change wordpress theme background?

  • Hi,

    I have just started to use WP. All together its very nice program! So the biggest thanks to everyone who are keeping it going!

    I have one wordpress theme what uses color for page background.

    But I want to change it to a picture (texture picture, needs to repeat)

    How can I do it?

    My webpage is http://www.tasuta.info

    Thanks for all help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi
    Forum Moderator

    @esmi

    Assuming you want to use this image in the entire page, you will first need to upload the image (called bg.jpg in the example below) to your theme’s images folder using FTP or whaterver file management application your host provides. Then edit style.css and change:

    body {
    background-color:#2E2E2E;
    color:#9AFE2E;
    font-family:"Lucida Grande",Tahoma,"Lucida Sans Unicode",Verdana,sans-serif;
    text-align:center;
    }

    to:

    body {
    background:#2E2E2E url(images/bg.jpg);
    color:#9AFE2E;
    font-family:"Lucida Grande",Tahoma,"Lucida Sans Unicode",Verdana,sans-serif;
    text-align:center;
    }

    What esmi said but add these to the body.

    background-repeat: repeat, repeat-x, repeat-y, no-repeat;

    repeat; all directions or
    repeat-x to left and right repeat. or
    repeat-y fro up & Down repeat. or
    no-repeat for no repeat !!

    background-attachment: scroll, fixed ;
    scroll moves as u scroll up and down.
    fixed means that the image sits still when scrolling

    background-position: top, right top, left top, ect…;
    determines where the corner of image will site. 😀

    Enjoy. now i’ll go back to making a fail 1st theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change wordpress theme background?’ is closed to new replies.