Headline background color for modern slider headline element

I’d like to have the background color show just behind the text and padding, like the example below.

Can you assist me with this?

If it matters, I’m using a modern slider, but disabled rotation and eliminated the other slides during my attempt to resolve with CSS.

Thank you.

Hello, @WaggingLabs,

Thanks for writing to us.

To add the background color to the headline as you have shared the example. You need to go to the Headline element —>Customize —>Element CSS

$el h2.x-text-content-text-primary{
display: inline;
background-color: #238723;
padding: 25px;  
}

The purpose of providing custom CSS is to show you how to add CSS code to your site. Writing custom CSS is outside the scope of our theme support. If you need more customization, you need to learn CSS and learn how to use the browser’s element inspector or you subscribe to One where customization questions are answered.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.