Title: Image posts with white background
Last modified: August 21, 2016

---

# Image posts with white background

 *  [John Parris](https://wordpress.org/support/users/mindctrl/)
 * (@mindctrl)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/image-posts-with-white-background/)
 * If the theme chooses a white background for an image post, the text (title, meta,
   etc.) is also white and it can’t be seen.

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

 *  [Caroline Moore](https://wordpress.org/support/users/sixhours/)
 * (@sixhours)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/image-posts-with-white-background/#post-3943373)
 * Howdy! Have you customized a child theme to force a white background for image
   posts? If so, you probably need to disable Tonesque support as well, since that’s
   automatically calculating color contrast on the text in image posts.
 * If that’s not the case, can you please post a link to a site demonstrating the
   problem, so we can investigate further? Thanks.
 *  Thread Starter [John Parris](https://wordpress.org/support/users/mindctrl/)
 * (@mindctrl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/image-posts-with-white-background/#post-3943375)
 * Hey Caroline, thanks for the reply. I tested it using the default parent theme
   with no mods and it does the same thing. Although this link is using a slightly
   modified child theme, you can see an image [here](http://www.johnparris.com/infinitesimal/)
   that gets a white background with Tonesque.
 * I’d rather not disable Toneque, as I think it’s pretty neat. 🙂 It would be cool
   if the theme checked for a white background and adjusted the text color to a 
   dark color. I notice on other colors it can flip to black, like it does [here](http://www.johnparris.com/vintage/)
   and [here](http://www.johnparris.com/missing-an-old-friend/).
 * I’m guessing that’s a relatively easy fix, but I just haven’t dug into it yet.
 *  [Caroline Moore](https://wordpress.org/support/users/sixhours/)
 * (@sixhours)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/image-posts-with-white-background/#post-3943376)
 * > It would be cool if the theme checked for a white background and adjusted the
   > text color to a dark color.
 * That’s part of what Tonesque does — it adjusts the contrast automatically. It
   sounds like something is broken.
 * In this case, from the link you posted, I can see the hex color code is missing
   a zero. This will not work, because it’s not a valid hex code, so it defaults
   back to white:
 *     ```
       .post-1445.format-image {
           background-color: #72ca0;
       }
       ```
   
 * This _will_ work, and the resulting color appears to match the image color:
 *     ```
       .post-1445.format-image {
           background-color: #072ca0;
       }
       ```
   
 * So at some point it looks like Tonesque or the theme is removing the preceding
   zero. Will dig a little deeper and let you know what I find. Thanks!
 *  Thread Starter [John Parris](https://wordpress.org/support/users/mindctrl/)
 * (@mindctrl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/image-posts-with-white-background/#post-3943380)
 * Good catch! I hadn’t even looked close enough yet to figure that out. I was assuming
   the theme chose white because of the big white border on that pic, but is actually
   the blue with the missing zero. Teaches me once again about assuming. 🙂

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

The topic ‘Image posts with white background’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/ryu/1.4.7/screenshot.png)
 * Ryu
 * [Support Threads](https://wordpress.org/support/theme/ryu/)
 * [Active Topics](https://wordpress.org/support/theme/ryu/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/ryu/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/ryu/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [John Parris](https://wordpress.org/support/users/mindctrl/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/image-posts-with-white-background/#post-3943380)
 * Status: not resolved