'ffffff', 'border' => 'eeeeee', 'text' => '444444', 'link' => '2574a9', 'url' => '2574a9', ); } // Enable support for WP.com global print style. add_theme_support( 'print-style' ); } add_action( 'after_setup_theme', 'coherent_wpcom_setup' ); /** * Dequeue if using custom Fonts on Wp.com */ function coherent_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'] ) ) wp_dequeue_style( 'coherent-font' ); } } add_action( 'wp_enqueue_scripts', 'coherent_dequeue_fonts' ); /** * Enqueue Wp.com specific scripts */ function coherent_wpcom_scripts() { wp_enqueue_style( 'coherent-wpcom-style', get_template_directory_uri() . '/css/wpcom.css', '20150410' ); } add_action( 'wp_enqueue_scripts', 'coherent_wpcom_scripts' ); /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function coherent_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', 'coherent_wpcom_body_classes' );