'ffffff', 'border' => 'eeeeee', 'text' => '333333', 'link' => '666666', 'url' => '666666', ); } // Enable support for WP.com global print style. add_theme_support( 'print-style' ); require_lib( 'class.color' ); } add_action( 'after_setup_theme', 'tonal_wpcom_setup' ); function tonal_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( 'tonal-fonts' ); } } add_action( 'wp_enqueue_scripts', 'tonal_dequeue_fonts' ); /** * Enqueue wp.com-specific scripts */ function tonal_wpcom_scripts() { wp_enqueue_style( 'tonal-wpcom-style', get_template_directory_uri() . '/css/wpcom.css', '20140305' ); } add_action( 'wp_enqueue_scripts', 'tonal_wpcom_scripts' ); /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function tonal_wpcom_body_classes( $classes ) { //Add a class of widgets-hidden if the sidebar is active for Direct Manipulation if ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2' ) || is_active_sidebar( 'sidebar-3' ) ) { $classes[] = 'widgets-hidden'; } return $classes; } add_filter( 'body_class', 'tonal_wpcom_body_classes' );