Site logo

Archived topic

Post Formats and Backgrounds

3 replies · Started by RoGina on July 24, 2017

Viewing posts 1–4 of 4

Is there anyway to get the background color for an image post to automatically match the uploaded image? Or if it's a group of images, the background will match the first image?

Hmm, not that I'm aware of. There would have to be some crazy programming that could read the image and set the background color.

Looks like they just manually add the CSS for each section:

article.green,
.archive-post.green {
	text-shadow: 0 1px 1px #eef1e6;
	background-color: #d7dec0;
}

article.green img, article.green .wp-caption {
	background: #eef1e6;
}

article.green img:hover,
.archive-post.green img:hover {
	background: #d7dec0;
}

article.orange,
.archive-post.orange {
	text-shadow: 0 1px 1px #ded1c6;
	background-color: #e3c3a9;
}
This archived topic is closed to new replies.