Podchaser Logo
Home
Setting The Background Color Of A Image Block In WordPress

Setting The Background Color Of A Image Block In WordPress

Released Thursday, 5th December 2019
Good episode? Give it some love!
Setting The Background Color Of A Image Block In WordPress

Setting The Background Color Of A Image Block In WordPress

Setting The Background Color Of A Image Block In WordPress

Setting The Background Color Of A Image Block In WordPress

Thursday, 5th December 2019
Good episode? Give it some love!
Rate Episode

Now that we're dealing with blocks if you want to put a background color on an image you have to go to your advanced, additional CSS classes section and reference a class that you have to create either in your theme files or in your special "additional CSS" area under the customizer.
I needed the background of an image to be black (and the caption text to be white) so I did:
.imgblack {
color: white;
background-color: black;
}

And then referenced that class name in the settings for that particular block.

Show More

Unlock more with Podchaser Pro

  • Audience Insights
  • Contact Information
  • Demographics
  • Charts
  • Sponsor History
  • and More!
Pro Features