Customizing background to one page only

  • Author
    Posts
  • #1371294

    stephgodanz
    Member

    How do i change the background on pages related only to festival pages, without changing the whole website?

    The blog I need help with is godanz.com.

    #1371372

    timethief
    Member

    This thread will be moved to the CSS Forum for you. Please do not create a duplicate thread.

    #1371394

    mrdirby
    Member

    I’m not sure about this but I think I saw that you can edit the css for a specific page by using:
    `.page-id body {
    background: background;
    }`

    I could be wrong but it’s worth a shot.

    #1371442

    That’s right! I find that it often helps to look at a specific example.

    I found this post on your blog that mentions a festival:
    http://godanz.com/2013/02/28/toronto-bachata-festival-february-2013/

    If you look at the page source for that post, you’ll find that one of the body classes is “postid-217” so what you can do is use that inside a CSS selector like this:

    body.custom-background.postid-217 {
    	background: orange;
    }

    Change the color name to a color code of your choice:
    http://en.wikipedia.org/wiki/Web_colors#X11_color_names

The topic ‘Customizing background to one page only’ is closed to new replies.