diff --git a/functions.php b/functions.php index 84fb68e..68827cf 100644 --- a/functions.php +++ b/functions.php @@ -124,11 +124,12 @@ function penguin_scripts() { $theme = wp_get_theme(); $penguin = wp_get_theme( 'penguin-gold' ); $minified = get_theme_mod( 'min-files' ); - $suffix = ( 1 == $minified ) ? '.min' : ''; + $suffix = ( 1 === $minified ) ? '.min' : ''; $fluidvids = get_theme_mod( 'fluidvids', true ); if ( is_child_theme() ) { - wp_enqueue_style( 'penguin-parent-style', get_template_directory_uri() . '/style' . $suffix . '.css', false, $penguin['Version'] ); + wp_enqueue_style( 'penguin-parent-style', get_template_directory_uri() . '/style.css', false, $penguin['Version'] ); + wp_style_add_data( 'penguin-parent-style', 'suffix', $suffix ); } wp_enqueue_style( 'penguin-style', get_stylesheet_uri(), false, $theme['Version'] );