Setting The Background Color Of A Image Block In WordPress

Setting The Background Color Of A Image Block In WordPress

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...
3 Minuten
Podcast
Podcaster
In my daily life of web designer, IT manager, database developer, Excel specialist, application programmer, server administrator, person with a modern phone, and internet user I come across some puzzling situations. Here you can hear me work through.....

Beschreibung

vor 6 Jahren
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.

Kommentare (0)

Lade Inhalte...

Abonnenten

15
15