Skip to content

Commit

Permalink
Merge pull request #261 from Automattic/style-wpcom-css
Browse files Browse the repository at this point in the history
Adding WP.com-specific styles
  • Loading branch information
karmatosed committed Dec 23, 2016
2 parents e22c14e + fad8838 commit 14cbdfb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/style-wpcom.css
@@ -0,0 +1,7 @@
/*
* Theme Name: Components
*
* Add any WordPress.com-specific CSS here
*
* This file is enqueued in /inc/wpcom.php
*/
8 changes: 8 additions & 0 deletions inc/wpcom.php
Expand Up @@ -30,3 +30,11 @@ function components_wpcom_setup() {
add_theme_support( 'print-styles' );
}
add_action( 'after_setup_theme', 'components_wpcom_setup' );

/*
* WordPress.com-specific styles
*/
function components_wpcom_styles() {
wp_enqueue_style( 'components-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20160411' );
}
add_action( 'wp_enqueue_scripts', 'components_wpcom_styles' );

0 comments on commit 14cbdfb

Please sign in to comment.