Created
February 19, 2019 22:10
-
-
Save iamandrewpeters/0deb696cf8d7fb4aa86ac028e3eb657a to your computer and use it in GitHub Desktop.
Change Fonts for TTR
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
function trc_custom_fonts($system_fonts) { | |
$system_fonts[ '10K Reasons' ] = array( | |
'fallback' => 'Verdana, Arial, sans-serif', | |
'weights' => array( | |
'300', | |
'400', | |
'700', | |
), | |
); | |
return $system_fonts; | |
} | |
//Add to Beaver Builder Theme Customizer | |
add_filter( 'fl_theme_system_fonts', 'trc_custom_fonts' ); | |
//Add to Page Builder modules | |
add_filter( 'fl_builder_font_families_system', 'trc_custom_fonts' ); |
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
/* Horizon Font */ | |
@font-face { | |
font-family: '10K Reasons'; | |
src: url('fonts/horizon-bold-webfont.woff2') format('woff2'), | |
url('fonts/horizon-bold-webfont.woff') format('woff'); | |
font-weight: 700; | |
} | |
@font-face { | |
font-family: '10K Reasons'; | |
src: url('fonts/horizon-light-webfont.woff2') format('woff2'), | |
url('fonts/horizon-light-webfont.woff') format('woff'); | |
font-weight: 300; | |
} | |
@font-face { | |
font-family: '10K Reasons'; | |
src: url('fonts/horizon-regular-webfont.woff2') format('woff2'), | |
url('fonts/horizon-regular-webfont.woff') format('woff'); | |
font-weight: 400; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment