- This topic has 4 replies, 2 voices, and was last updated 3 years, 6 months ago by drosselbarto.
Tagged: font fonts self-hosted font
- AuthorPosts
- April 12, 2021 at 11:00 am #15599
drosselbartoParticipantI want to use “Montserrat-Regular” as self-hoted font (instead of Google fonts) for header navigation on the insane Polestar theme.
How do I establish adding self-hosted fonts so those become available in child theme > customizing > theme settings > typography?I have already uploaded the fonts (.eot, .svg, .ttf, .woff, .woff2) into wp-content > child theme’s folder – So I only need to make them available in above dropdown.
Thanks
AlexApril 12, 2021 at 2:39 pm #15600
Andrew MisplonKeymasterHi Alex
You’ll need to load your self-hosted font in the child stylesheet or a Custom CSS location. See the heading “How to Host Google Fonts on Your Own Server”, the styles example is in that section. https://webdesign.tutsplus.com/tutorials/how-to-self-host-google-fonts–cms-34775.
Once you’ve loaded your fonts you can stop Polestar from loading Google Fonts by adding the following to your child theme functions file:
function polestar_child_remove_google_fonts() { wp_dequeue_style( 'polestar-fonts' ); } add_action( 'wp_enqueue_scripts', 'polestar_child_remove_google_fonts', 11 );
Give that a try and let me know how you get on.
April 13, 2021 at 9:30 pm #15605
drosselbartoParticipantThis reply has been marked as private.April 14, 2021 at 9:25 am #15606
Andrew MisplonKeymasterHi Alex
Sure, no problem. Please, consider purchasing Polestar Premium. You can then email [email protected] with WordPress login details and a FTP username and password, I’ll lend a hand from there.
April 14, 2021 at 2:55 pm #15612
drosselbartoParticipantThis reply has been marked as private. - AuthorPosts
You must be logged in to reply to this topic.