Improve scriptless CSS

This commit is contained in:
Robin Cornett
2019-01-10 12:34:08 -05:00
parent ee7d4bc7cd
commit 0489695e64
3 changed files with 3 additions and 3 deletions
@@ -88,7 +88,7 @@ class Display_Featured_Image_Genesis_Output {
* @since 2.6.0
*/
public function add_inline_style() {
$css = sprintf( '.big-leader { max-height: %spx; }', $this->setting['max_height'] );
$css = sprintf( '.big-leader, .big-leader__image img { max-height: %spx; }', $this->setting['max_height'] );
wp_add_inline_style( 'displayfeaturedimage-style', wp_strip_all_tags( $css ) );
}