function isola_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('isola-source-sans-pro'); } } }
/** * De-queue Google fonts if custom fonts are being used instead. */ function pique_dequeue_fonts() { if (class_exists('TypekitData') && class_exists('CustomDesign') && CustomDesign::is_upgrade_active()) { $customfonts = TypekitData::get('families'); if ($customfonts['headings']['id'] && $customfonts['body-text']['id']) { wp_dequeue_style('pique-fonts'); } } }
/** * Dequeue font styles when Typekit is active. * * We don't want to enqueue the font scripts if the blog * has WP.com Custom Design and is using a 'Headings' font. */ function bouquet_dequeue_fonts() { if (class_exists('TypekitData') && class_exists('CustomDesign') && CustomDesign::is_upgrade_active()) { $customfonts = TypekitData::get('families'); if ($customfonts && $customfonts['headings']['id']) { wp_dequeue_style('sorts mill goudy'); } } }
function sundance_dequeue_fonts() { if (class_exists('TypekitData') && class_exists('CustomDesign')) { if (CustomDesign::is_upgrade_active()) { $customfonts = TypekitData::get('families'); if (!$customfonts) { return; } $site_title = $customfonts['site-title']; $headings = $customfonts['headings']; if ($site_title['id'] && $headings['id']) { wp_dequeue_style('sundance-droid-serif'); } } } }
/** * Dequeue Google Fonts if Custom Fonts are being used instead. * * @package Mayer/inc * @since 1.0.0 */ function mayer_dequeue_fonts() { if (class_exists('TypekitData') && class_exists('CustomDesign') && CustomDesign::is_upgrade_active()) { $custom_fonts = TypekitData::get('families'); if ($custom_fonts && $custom_fonts['headings']['id']) { wp_dequeue_style('mayer-nunito'); wp_dequeue_style('mayer-muli'); wp_dequeue_style('mayer-source-sans-pro'); } if ($custom_fonts && $custom_fonts['body-text']['id']) { wp_dequeue_style('mayer-nunito'); wp_dequeue_style('mayer-muli'); wp_dequeue_style('mayer-source-sans-pro'); } } }