Created
June 13, 2022 13:51
-
-
Save runezero/de8d36ddcb7ebb66b13f9d864fa79adf to your computer and use it in GitHub Desktop.
[Add google fonts] Add Google fonts to the theme support #enfold
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); | |
| function avia_add_heading_font($fonts) { | |
| $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700'; | |
| $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic'; | |
| return $fonts; | |
| } | |
| add_filter( 'avf_google_content_font', 'avia_add_content_font'); | |
| function avia_add_content_font($fonts) { | |
| $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic'; | |
| $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700'; | |
| return $fonts; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment