• Fasthealer

    (@fasthealer)


    Does anyone know a way I can install a different background on each of my static pages? How do I single out a specific page for this?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    use body_class() in the body tag:
    http://codex.ww.wp.xz.cn/Function_Reference/body_class

    and then use the page specific .page-id-127 classes for styling your background

    example:
    body.page-id-127 { background: url(images/page-background.jpg); }

    Thread Starter Fasthealer

    (@fasthealer)

    Thanks, alchymyth. I’m not sure how to proceed with this, but confidence is high. Last night I was able to erase my sidebar in the ‘Desire’ theme by deleting code. I was just guessing! I’m code illiterate. What a feeling.

    Thanks, again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Different background for different pages’ is closed to new replies.