Footer image problem

  • Snake

    #5651

    I want to change a footer image so I copied this piece of code from style.css to custom css:

    #footer {
    background: url(images/sprite_h.png) left -1352px repeat-x #111;
    }

    and change it to

    #footer {
    background: url(images/footer.jpg);
    }

    I also tried this:

    #footer {
    background: url("http://mysite.com/wp-content/themes/graphene/images/footer.jpg");
    }

    The result is that a default image from footer is removed, but image defined in custom css is not displayed.

    Where is the problem?

    Thanks!

    Anonymous

    #32408

    Try this:

    #footer { background-image: url("../images/footer.jpg"); }

    Snake

    #32409

    I figured out where the problem is.

    When the code is written in style.css then path (images/picture.jpg) is actually http://mysite.com/wp-content/themes/graphene/images/picture.jpg

    But when the same code is written in custom css then path (images/picture.jpg) is actually http://mysite.com/images/picture.jpg

    I just created a folder “images” and move picture in it.

    But thanks anyway Luko!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!