'ffffff', 'border' => 'f1f2f3', 'text' => '7f8d8c', 'link' => 'e06d5e', 'url' => 'e06d5e', ); } // Add print stylesheet. add_theme_support( 'print-style' ); } add_action( 'after_setup_theme', 'illustratr_add_wpcom_support' ); /** * Enqueue wp.com-specific styles */ function illustratr_wpcom_styles() { wp_enqueue_style( 'illustratr-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20140328' ); } add_action( 'wp_enqueue_scripts', 'illustratr_wpcom_styles' ); /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function illustratr_wpcom_body_classes( $classes ) { //Add a class of widgets-hidden if the sidebar is active for Direct Manipulation if ( is_active_sidebar( 'sidebar-1' ) ) { $classes[] = 'widgets-hidden'; } return $classes; } add_filter( 'body_class', 'illustratr_wpcom_body_classes' );