Astra_Ext_Nav_Menu_Markup::add_fonts()
Enqueue Font Family
Description
Source
File: addons/nav-menu/classes/class-astra-ext-nav-menu-markup.php
public function add_fonts() { $font_family_primary = astra_get_option( 'primary-header-megamenu-heading-font-family' ); $font_weight_primary = astra_get_option( 'primary-header-megamenu-heading-font-weight' ); Astra_Fonts::add_font( $font_family_primary, $font_weight_primary ); $font_family_above = astra_get_option( 'above-header-megamenu-heading-font-family' ); $font_weight_above = astra_get_option( 'above-header-megamenu-heading-font-weight' ); Astra_Fonts::add_font( $font_family_above, $font_weight_above ); $font_family_below = astra_get_option( 'below-header-megamenu-heading-font-family' ); $font_weight_below = astra_get_option( 'below-header-megamenu-heading-font-weight' ); Astra_Fonts::add_font( $font_family_below, $font_weight_below ); $font_family_mobile_submenu = astra_get_option( 'header-font-family-mobile-menu-sub-menu' ); $font_weight_mobile_submenu = astra_get_option( 'header-font-weight-mobile-menu-sub-menu' ); Astra_Fonts::add_font( $font_family_mobile_submenu, $font_weight_mobile_submenu ); }
Expand full source code Collapse full source code View on Trac