Tagged: x
-
AuthorPosts
-
January 17, 2017 at 5:09 pm #1334192
Abd Ur RehmanParticipantHello there!
Quick question?
how do I set my custom font as the default font for, say, my H1 headings, etc.?
Thanks!
January 17, 2017 at 11:42 pm #1334571
RupokMemberHi there,
Thanks for writing in! You can set default fonts for Heading and Body from Customzie > Typography – http://prntscr.com/dx2abk
Cheers!
January 17, 2017 at 11:50 pm #1334576
Abd Ur RehmanParticipantThis reply has been marked as private.January 18, 2017 at 1:37 am #1334648
RupokMemberHi there,
Did you add the custom font already. Here goes the step by step guide to add custom webfont to your site.
You can add custom fonts to your website using CSS3 @font-face rule. To do this, please review this article: http://css-tricks.com/snippets/css/using-font-face/
Basically you need to add the following code in your child theme’s style.css file (if you haven’t installed a child theme, please visit this to install Child Theme):
@font-face { font-family: 'MyWebFont'; src: url('path-to-your-font-directory/font_name.eot'); src: url('path-to-your-font-directory/font_name.eot?#iefix') format('embedded-opentype'), url('path-to-your-font-directory/font_name.woff') format('woff'), url('path-to-your-font-directory/font_name.ttf') format('truetype'), url('path-to-your-font-directory/font_name.svg#svgFontName') format('svg'); }Replace MyWebFont with the name of your font, path-to-your-font-directory with your fonts directory URL (e.g, http://yourwebsite.com/fonts) and font_name with your font’s name.
Next, whenever you need to use this font, simply use “MyWebFont” (or your custom font name), e.g:
body { font-family: 'MyWebFont', sans-serif; }Hope this helps. 🙂
Thank you.
January 18, 2017 at 3:40 am #1334755
Abd Ur RehmanParticipantThis reply has been marked as private.January 18, 2017 at 3:51 am #1334771
LelyModeratorHello There,
Yes that is correct. Please just adjust to this:
h1, .h1{ font-family: 'MyWebFont', sans-serif; }Hope this helps.
January 18, 2017 at 1:28 pm #1335491
Abd Ur RehmanParticipantOkay!
Thanks a lot!
January 18, 2017 at 3:00 pm #1335627
JoaoModeratorYou are welcome 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1334192 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
