- This topic has 8 replies, 2 voices, and was last updated 4 years, 11 months ago by
Leo.
-
AuthorPosts
-
March 31, 2020 at 10:50 am #1221182
Teresa
I’ve (successfully) added a local font to my site (stupid typos and PBKAC notwithstanding) and it shows up in the Customizer (and site) fine. Wondering how I can do the same in the Advanced Typography section of GB.
The font doesn’t appear in the menu and when I try to input the font name in the box it doesn’t seem to take.
If this is a “we’re on it, coming soon” feature, cool I can be patient.
All the above said, I’m finally getting the swing of creating nice landing pages with a lot less swearing than last week! http://www.trustglobalwireless.com/
March 31, 2020 at 4:20 pm #1221483Tom
Lead DeveloperLead DeveloperHi there,
This is because the
@font-faceCSS isn’t loading in the block editor.How are you adding that CSS right now? A child theme or another method?
March 31, 2020 at 4:32 pm #1221499Teresa
Hi Tom, Greetings from the other side of Georgia Straight! I added the local fonts via your handy tutorial (into a child theme).
It’s more annoying than anything else. I’ve set all the fonts in the Customizer so it doesn’t really matter, but nice to see how things look.
April 1, 2020 at 10:01 am #1222427Tom
Lead DeveloperLead DeveloperTotally – give this a shot:
add_action( 'enqueue_block_editor_assets', function() { wp_enqueue_style( 'your-handle-here', get_stylesheet_directory_uri() . "/block-editor.css", false, '1.0', 'all' ); } );Then add
block-editor.cssin your child theme, and include the@font-faceCSS (and any other CSS you want to load in the editor).Let me know if you need more info 🙂
April 1, 2020 at 10:04 am #1222437Teresa
Awesome! I’ll give it a shot! Thanks Tom.
April 1, 2020 at 10:24 am #1222454Teresa
Bingo! https://www.screencast.com/t/sKxNh5BCWj
Thanks again!
April 1, 2020 at 10:25 am #1222458Tom
Lead DeveloperLead DeveloperAwesome! Glad I could help 🙂
May 1, 2021 at 12:39 pm #1759581Maouez
Hello,
I’m sorry to open this topic but I block that the addition of my font.
Can you be more explicit than:
Then add block-editor.css in your child theme, and include the @font-face CSS (and any other CSS you want to load in the editor).I have added the php code that you quote in the “Code snippets” help but I don’t know how to do the rest of the explanations.
Thanks in advance for the help
May 1, 2021 at 4:52 pm #1759693Leo
StaffCustomer SupportHi there,
Can you please open a support topic in GB’s support system now we monitor them separately?
Free: https://wordpress.org/support/plugin/generateblocks/
Pro: https://generateblocks.com/support/Thanks!
-
AuthorPosts
- The topic ‘Adding local font to GenerateBlocks Advanced Typography?’ is closed to new replies.