- This topic has 3 replies, 2 voices, and was last updated 5 years, 7 months ago by Leo.
-
AuthorPosts
-
September 4, 2018 at 8:40 am #668511Dirk
Hello
i have the fonts in childtheme/fonts/ directory
futura_light.eot
futura_light.ttf
futura_light.woff
futura_light.woff2i have the css in childtheme style.css
___________________________________________________________________________
/* futura_light */
@font-face {
font-family: ‘futura_light’;
font-style: normal;
font-weight: 400;
src: url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_light.eot’); /* IE9 Compat Modes */
src: local(‘futura_light’), local(‘futura_light’),
url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_light.eot?#iefix’) format(’embedded-opentype’), /* IE6-IE8 */
url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_light.woff2’) format(‘woff2’), /* Super Modern Browsers */
url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_light.woff’) format(‘woff’), /* Modern Browsers */
url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_light.ttf’) format(‘truetype’), /* Safari, Android, iOS */
url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_medium.ttf’) format(‘truetype’), /* Safari, Android, iOS */
url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_bold.ttf’) format(‘truetype’), /* Safari, Android, iOS */
url(‘.https://mydomain.de/wp-content/themes/generatepress_child/fonts/futura_extra_bold.ttf’) format(‘truetype’), /* Safari, Android, iOS */
}
___________________________________________________________________________i have the filter in functions.php
___________________________________________________________________________
add_filter( ‘generate_typography_default_fonts’, ‘tu_add_local_fonts’ );
function tu_add_local_fonts( $fonts ) {
$fonts[] = ‘futura_light’;
return $fonts;
}
____________________________________________________________________________i can select in the customizer “futura_light” π
but unfortunately it does not work on the website π
September 4, 2018 at 2:43 pm #668760LeoStaffCustomer SupportHi there,
Can you first make sure all steps here are completed?
https://docs.generatepress.com/article/adding-local-fonts/Let me know π
September 5, 2018 at 4:57 am #669195Dirkyes i followed this instructions,
I found the mistake in this instructions π
__________________________________________________the path in the css that work is
/ wp-content / themes / generatepress_child / fonts /
with the fullpath
https: // xxxx.de / wp-content / themes / generatepress_child / fonts /
does not work
regards
DinaSeptember 5, 2018 at 9:35 am #669537LeoStaffCustomer SupportGlad you figured out!
-
AuthorPosts
- You must be logged in to reply to this topic.