Skip to content

Commit

Permalink
Hide background image in IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityrail committed May 12, 2015
1 parent 26fbf35 commit 7dd6447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions class.jetpack-start-welcome-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ static function init_welcome_panel() {
wp_enqueue_script( 'jetpack-start' );

// CSS
global $wp_styles;
wp_register_style( 'ie8', plugins_url( 'css/ie8.css', __FILE__ ) );
$wp_styles->add_data( 'ie8', 'conditional', 'lt IE 9' );

wp_enqueue_style( 'jetpack-start', plugins_url( 'css/welcome-panel.css', __FILE__ ), array( 'wp-admin', 'wp-pointer' ) );
wp_enqueue_style( 'ie8' );
}
}

Expand Down
3 changes: 3 additions & 0 deletions css/ie8.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.getting-started__intro {
background-image: none !important;
}

0 comments on commit 7dd6447

Please sign in to comment.