Featured Slider on All Pages and posts

Also how can i inset this code:

.flex-caption {
display: none;
}

Into the child theme so i don’t have to put it in the Custom CSS Editor ? It’s the code from this post:

https://colorlibsupport.com/t/how-to-remove-title-on-slider-featured-image/