Skip to content
Setting The Background Color Of A Image Block In WordPress episode artwork

Dec 5, 2019 2 min

Setting The Background Color Of A Image Block In WordPress

from Random Tech Thoughts Hosted by Kyle Souza

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. Become a supporter of this podcast: https://www.spreaker.com/podcast/random-tech-thoughts--2829929/support.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Setting The Background Color Of A Image Block In WordPress

0:00 2:52

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Random Tech Thoughts?

This episode is 2 minutes long.

When was this Random Tech Thoughts episode published?

This episode was published on December 5, 2019.

Can I download this Random Tech Thoughts episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.