'ffffff', 'border' => 'cdc9c9', 'text' => '36312d', 'link' => 'e94f1d', 'url' => 'e94f1d', ); // Grab Open Table widget. if ( file_exists( get_template_directory() . '/inc/wp-open-table/wp-open-table.php' ) ) { require get_template_directory() . '/inc/wp-open-table/wp-open-table.php'; } // Add print stylesheet add_theme_support( 'print-style' ); } add_action( 'after_setup_theme', 'confit_wpcom_setup' ); /** * Register Open Table Widget. * * @since Confit 1.0 */ function confit_wpcom_widgets_init() { register_widget( 'Open_Table_Widget' ); } add_action( 'widgets_init', 'confit_wpcom_widgets_init' ); /** * Remove the widont filter because of the limited space for post/page title in the design. */ function confit_wido() { remove_filter( 'the_title', 'widont' ); } add_action( 'init', 'confit_wido' ); /* * De-queue Google fonts if custom fonts are being used instead. * * @since Confit 1.0 */ function confit_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( 'confit-font-muli' ); wp_dequeue_style( 'confit-font-enriqueta' ); } } } add_action( 'wp_enqueue_scripts', 'confit_dequeue_fonts' ); //WordPress.com specific styles function confit_wpcom_styles() { wp_enqueue_style( 'confit-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20130005' ); } add_action( 'wp_enqueue_scripts', 'confit_wpcom_styles' );