Ledger Nano X - The secure hardware wallet
SHARE
TWEET

How to add custom fonts without plugin on Astra theme

fahimmurshed May 18th, 2020 613 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Add custom fonts without plugin on Astra theme
  2. // More info on https://murshidalam.com
  3. add_filter( 'astra_system_fonts', 'add_system_fonts' );
  4.  
  5. function add_system_fonts( $fonts ) {
  6.  
  7.     $additional_fonts = array(
  8.         'Hiragino Sans' =>  array(
  9.             'fallback' => 'Meiryo,sans-serif'
  10.         ),
  11.         'Hiragino Serif' => array(
  12.             'fallack' => 'MS PMincho,serif'
  13.         )
  14.     );
  15.  
  16.     return array_merge( $fonts, $additional_fonts );
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top