Skip to content

Instantly share code, notes, and snippets.

@shubhw12
Created April 16, 2020 14:46
Show Gist options
  • Select an option

  • Save shubhw12/794a461440d2fb26288eaff64dca951b to your computer and use it in GitHub Desktop.

Select an option

Save shubhw12/794a461440d2fb26288eaff64dca951b to your computer and use it in GitHub Desktop.
Custom fonts.
add_filter( 'astra_system_fonts', 'my_custom_fonts' );
function my_custom_fonts(){
$system_custom_fonts = array(
'Helvetica' => array(
'fallback' => 'Verdana, Arial, sans-serif',
'weights' => array(
'300',
'400',
'700',
),
),
'Verdana' => array(
'fallback' => 'Helvetica, Arial, sans-serif',
'weights' => array(
'300',
'400',
'700',
),
),
'Arial' => array(
'fallback' => 'Helvetica, Verdana, sans-serif',
'weights' => array(
'300',
'400',
'700',
),
),
'Times' => array(
'fallback' => 'Georgia, serif',
'weights' => array(
'300',
'400',
'700',
),
),
'Georgia' => array(
'fallback' => 'Times, serif',
'weights' => array(
'300',
'400',
'700',
),
),
'Courier' => array(
'fallback' => 'monospace',
'weights' => array(
'300',
'400',
'700',
),
),
'GT Walsheim Pro' => array(
'fallback' => 'Lato, sans-serif',
'weights' => array(
'100',
'200',
'300',
'400',
'500',
'700',
'800',
'900',
),
),
);
return $system_custom_fonts;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment