astra_get_font_family( string $value = '' )

Get Font family


Description

Syntax:

astra_get_font_family( VALUE, DEFAULT );

E.g. astra_get_font_family( VALUE, ” );


Parameters

$value

(string) (Optional) CSS value.

Default value: ''


Return

(mixed) CSS value depends on $unit


Source

File: inc/core/common-functions.php

	function astra_get_font_family( $value = '' ) {
		$system_fonts = Astra_Font_Families::get_system_fonts();
		if ( isset( $system_fonts[ $value ] ) && isset( $system_fonts[ $value ]['fallback'] ) ) {
			$value .= ',' . $system_fonts[ $value ]['fallback'];
		}

		return $value;
	}

Changelog

Changelog
Version Description
1.0.19 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.