-
AuthorPosts
-
January 15, 2015 at 4:45 pm #184017
Tuna TParticipantHi All,
Whats the best practice for adding a new font-family to the Theme Customizer?
Mike
January 16, 2015 at 10:48 am #184533
DarshanaModeratorHi there,
Thanks for writing in! Follow the steps described below to add any custom fonts to your theme using @font-face.
Step 1: First you need to convert the fonts (eg. TTF or OTF format) that you have to use with @font-face. Use one of the following tools: http://fontface.codeandmore.com or http://www.fontsquirrel.com/fontface/generator to generate the fonts.
Step 2: Download the generated zip and you should have the following font formats: .eot, .svg, .ttf and .woff. Upload those font files to your server (ie. create a ‘fonts’ under your root folder or ‘wp-content’ folder).
Step 3: Now you need to specify the font in your CSS. The CSS can be added via Customizer > Custom > CSS or creating custom.css file in theme folder:
@font-face { font-family: 'FontName'; src: url('http://yoursite.com/fonts/fontname.eot'); src: url('http://yoursite.com/fonts/fontname.eot?#iefix') format('embedded-opentype'), url('http://yoursite.com/fonts/fontname.woff') format('woff'), url('http://yoursite.com/fonts/fontname.ttf') format('truetype'), url('http://yoursite.com/fonts/fontname.svg#fontname') format('svg'); }Now you may specify which elements to apply the custom font.
h1, h2, h3, h4, h5, h6, #site-logo, .post-title, .widgettitle { font-family: "FontName"; }Hope that helps.
January 16, 2015 at 5:07 pm #184764
Tuna TParticipantHi Support. 🙂
We know we can do it via CSS, but we’d prefer to choose an option in the theme customizer. We want to add common web safe fonts like georgia or lucida grande to the theme customizer.
We put a new fonts.php in our child theme but that didnt work.
It would be awesome if there was a filter to do this.
Mike
January 18, 2015 at 3:27 am #185414
FriechModeratorHi Mike,
Further customization from here would be getting into custom development, which is outside the scope of support we can offer. We certainly appreciate the feedback! This is something we can add to our list of feature requests.
Cheers!
January 19, 2015 at 10:38 am #186264
Tuna TParticipantIt would be a great filter to have. 🙂
January 20, 2015 at 1:26 am #186610
ChristianModeratorThanks for your feedback Tuna. I’ll send this to our development team and they might include this in a future release.
May 30, 2015 at 12:32 am #286512
Chris in TokyoParticipantThis is fantastic! It was so easy to add a custom font. Thank you!
May 30, 2015 at 8:20 pm #287133
ChristianModeratorYou’re welcome. We’re glad you liked it. 🙂
June 1, 2015 at 11:26 am #288753
hipneckParticipantI’d also love to see X get a button that allows you to upload the web font kit of your choice to the list so all the options are easy to use from Cornerstone, and not something you have to dive into coding to achieve.
June 1, 2015 at 10:03 pm #289318
ChristianModeratorThanks for your feedback. I’ll pass that along as feature request to our development team. 🙂
July 10, 2015 at 6:49 am #326616
Curtis RParticipantI’d also love the ability to add custom font to customizer (I have some clients that want their own font thoughthe freedom to change fonts as well without me being around) – just thought I’d +1 the suggestion 🙂
July 10, 2015 at 8:12 am #326660
John EzraMemberHi there,
Thanks for writing in and for showing interest. We will update our development team – thanks!
July 29, 2015 at 11:24 am #344282
calebParticipantwhat text would I use to specify button elements to use the font that i’m uploading?
July 29, 2015 at 12:38 pm #344378
ThaiModeratorAugust 6, 2015 at 12:27 pm #352089
RotaryPoweredParticipantHi guys,
Firstly, I appreciate the support I’ve received it has been comprehensive and fast, thank you for that.
What are all the elements I need to emphasize within the entire web document where there would be text and how would they be “abbreviated” like: .x-btn ?
h1, h2, h3, h4, h5, h6, #site-logo, .post-title, .widgettitle, .x-btn {
font-family: “FontName”;
}Do I need to comment out google fonts code?
https://community.theme.co//forums/topic/chinese-users-cant-access-my-site-need-to-remove-any-and-all-google-refrencing/I’m still lost somewhere..
Can someone give me a short tutorial on what I do after I have my fonts in 5 different correct formats in a newly created folder under wp_content?Kind Regards,
Mark -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-184017 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
