Astra_Heading_Colors_Loader::add_fonts()
Enqueue google fonts.
Description
Source
File: inc/addons/heading-colors/class-astra-heading-colors-loader.php
public function add_fonts() {
$font_family_h1 = astra_get_option( 'font-family-h1' );
$font_weight_h1 = astra_get_option( 'font-weight-h1' );
Astra_Fonts::add_font( $font_family_h1, $font_weight_h1 );
$font_family_h2 = astra_get_option( 'font-family-h2' );
$font_weight_h2 = astra_get_option( 'font-weight-h2' );
Astra_Fonts::add_font( $font_family_h2, $font_weight_h2 );
$font_family_h3 = astra_get_option( 'font-family-h3' );
$font_weight_h3 = astra_get_option( 'font-weight-h3' );
Astra_Fonts::add_font( $font_family_h3, $font_weight_h3 );
if ( astra_has_gcp_typo_preset_compatibility() ) {
$font_family_h4 = astra_get_option( 'font-family-h4' );
$font_weight_h4 = astra_get_option( 'font-weight-h4' );
Astra_Fonts::add_font( $font_family_h4, $font_weight_h4 );
$font_family_h5 = astra_get_option( 'font-family-h5' );
$font_weight_h5 = astra_get_option( 'font-weight-h5' );
Astra_Fonts::add_font( $font_family_h5, $font_weight_h5 );
$font_family_h6 = astra_get_option( 'font-family-h6' );
$font_weight_h6 = astra_get_option( 'font-weight-h6' );
Astra_Fonts::add_font( $font_family_h6, $font_weight_h6 );
}
$theme_btn_font_family = astra_get_option( 'font-family-button' );
$theme_btn_font_weight = astra_get_option( 'font-weight-button' );
Astra_Fonts::add_font( $theme_btn_font_family, $theme_btn_font_weight );
$header_btn_font_family = astra_get_option( 'primary-header-button-font-family' );
$header_btn_font_weight = astra_get_option( 'primary-header-button-font-weight' );
Astra_Fonts::add_font( $header_btn_font_family, $header_btn_font_weight );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |