WordPress.org

Ready to get started?Download WordPress

Forums

How to change wordpress theme background? (3 posts)

  1. kaurviru
    Member
    Posted 4 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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;
    }
  3. Grinlock
    Member
    Posted 4 years ago #

    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. :D

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

Topic Closed

This topic has been closed to new replies.

About this Topic