'#ffffff', 'border' => '#ebf2f6', 'text' => '#21759b', 'link' => '#4a4a4a', 'url' => '#4a4a4a', ); } } add_action( 'after_setup_theme', 'ecto_wpcom_setup' ); // WordPress.com specific styles function ecto_wpcom_styles() { wp_enqueue_style( 'ecto-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '042015' ); } add_action( 'wp_enqueue_scripts', 'ecto_wpcom_styles' ); /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function ecto_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', 'ecto_wpcom_body_classes' );