Title: Background Images Problem
Last modified: August 19, 2016

---

# Background Images Problem

 *  [wdejesus](https://wordpress.org/support/users/wdejesus/)
 * (@wdejesus)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/)
 * Hello Everyone,
 *  I have been working on my website and I am having issues switching out background
   images. The issue is that I have done an ID for every page ID in my CSS and I
   have switched out the images no problem on pages, for example:
 * body.home{
 *  background-image:url(images/Farrowtone_BG_1.jpg);
 *  background-color:black;
 *  background-position: center top;
 *  background-repeat: no-repeat;
 *  color: #000000;
 *  font-family:’Verdana’, Lucida Grande, Arial, Sans-Serif;
 *  font-size: 12px;
 *  margin: 0;
 *  text-align: center;
 *  vertical-align: top;
 * }
 * body.page-id-2{
 *  background-image:url(images/Farrowtone_BG_2.jpg);
 *  background-color:black;
 *  background-position: center top;
 *  background-repeat: no-repeat;
 *  color: #000000;
 *  font-family:’Verdana’, Lucida Grande, Arial, Sans-Serif;
 *  font-size: 12px;
 *  margin: 0;
 *  text-align: center;
 *  vertical-align: top;
 * }
 * Now the issue is that when I want my blog posts to be one image that is continuous,
   I was told to place the code as **body.single**, but that messes the other pages
   up. How do I keep my page ID images ok, but make the blog pages work without 
   them affecting those other pages?
 * Will

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

 *  [Jarret](https://wordpress.org/support/users/jarretc/)
 * (@jarretc)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/#post-1832375)
 * That depends on the theme you are using. Which theme are you using?
 * If a theme is typically setup correctly, you should be able to style every single
   post separately from one another as each post can by style through its own ID.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/#post-1832381)
 * as far as i know, `body_class()` does not add the class `.single` to pages.
 * you could also try `body.single-post { ... }` which seems to be a class for single
   post display.
 * a link to your site might help to illustrate your problem.
 *  [Jarret](https://wordpress.org/support/users/jarretc/)
 * (@jarretc)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/#post-1832384)
 * body_class() creates a .single class for post pages and creates a .page class
   for actual pages
 * [http://codex.wordpress.org/Function_Reference/body_class](http://codex.wordpress.org/Function_Reference/body_class)
 *  Thread Starter [wdejesus](https://wordpress.org/support/users/wdejesus/)
 * (@wdejesus)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/#post-1832423)
 * The thing is that I am having to rotate the images in the single pages. The link
   is http;//farrowtone.com/wordpress and you can click on Hello World and you will
   see it shows up blank when I try body.single-post tag
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/#post-1832431)
 * at the moment, clicking on ‘hello world’, is showing the same backgrond image
   as the front page – not blank (that is the way how it is defined in the styles
   = Farrowtone_BG_1.jpg)
 * unfortunately, i can’t get any links to show the pages (they seem to go to an
   external site)
 * maybe you need to clear the browser cache (‘reload’ button on the browser; or
   press ‘ctrl f5’) to get the changes of the styles to show.
 *  Thread Starter [wdejesus](https://wordpress.org/support/users/wdejesus/)
 * (@wdejesus)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/#post-1832438)
 * YOU ARE FREAKING AWESOME ALCHYMYTH!!! it works

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

The topic ‘Background Images Problem’ is closed to new replies.

## Tags

 * [background images](https://wordpress.org/support/topic-tag/background-images/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [wdejesus](https://wordpress.org/support/users/wdejesus/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/background-images-problem/#post-1832438)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
