'fffdfd', 'border' => 'e2e7e8', 'text' => '606666', 'link' => 'cc523e', 'url' => 'cc523e', ); } add_theme_support( 'print-style' ); } add_action( 'after_setup_theme', 'scrawl_wpcom_setup' ); /* * De-queue Google fonts if custom fonts are being used instead */ function scrawl_dequeue_fonts() { if ( class_exists( 'TypekitData' ) && class_exists( 'CustomDesign' ) && CustomDesign::is_upgrade_active() ) { $customfonts = TypekitData::get( 'families' ); if ( $customfonts && $customfonts['site-title']['id'] && $customfonts['headings']['id'] && $customfonts['body-text']['id'] ) { wp_dequeue_style( 'scrawl-fonts' ); } } } add_action( 'wp_enqueue_scripts', 'scrawl_dequeue_fonts' ); //WordPress.com specific styles function scrawl_wpcom_styles() { wp_enqueue_style( 'scrawl-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20150310' ); } add_action( 'wp_head', 'scrawl_wpcom_styles', 2 ); //Hooked into wp_head to override WP.com native styles /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function scrawl_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', 'scrawl_wpcom_body_classes' );