[Support request] Post Formats and Backgrounds

Home Forums Support [Support request] Post Formats and Backgrounds

Home Forums Support Post Formats and Backgrounds

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #353951
    RoGina

    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?

    #354153
    Tom
    Lead Developer
    Lead Developer

    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.

    #354219
    RoGina

    I thought so. I saw it on 2 sites, checked the source code and couldn’t figure it out.

    http://girlwithacamera.co.uk

    https://wordpress.org/themes/ryu/

    #354371
    Leo
    Staff
    Customer Support

    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;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.