-
I followed the tutorial on youtube and have read a few items on here. I added the new font to the media file. Used this CSS in the child theme.
/* ethnocentric_rg */
@font-face {
font-display: swap;
font-family: ‘ethnocentric_rg’;
font-weight: normal;
font-style: normal;
src: url(‘https://shutters.suncoastwebmarketing.net/wp-content/uploads/ethnocentric_rg-webfont.woff’) format(‘woff’);
src: url(‘https://shutters.suncoastwebmarketing.net/wp-content/uploads/ethnocentric_rg-webfont.woff2’) format(‘woff2’);
}Added PHP to child theme
add_filter( ‘generate_editor_styles’, function( $editor_styles ) {
$editor_styles[] = ‘style.css’;return $editor_styles;
} );I am not seeing that the new font is added.
I added it via elementor just fine but am having issues adding to the theme and to force WordPress to use it. -
Hi there,
I am not seeing that the new font is added.
Have you done this step?
https://docs.generatepress.com/article/adding-local-fonts/#adding-our-fontI added it via elementor just fine but am having issues adding to the theme and to force WordPress to use it.
Do you mean the you don’t see the font applied to the text in the WP block editor?
Let me know!
-
I don’t see a “font manager”. Where is this located?
-
Sounds like you are using the legacy typography system, try switching to the dynamic typography system first:
https://docs.generatepress.com/article/switching-to-dynamic-typography/ -
Yes, that was the piece I was missing. Thank you!
-
Glad to hear that 🙂
- You must be logged in to reply to this topic.