-
AuthorPosts
-
March 2, 2016 at 1:29 pm #592039
Hey
I’m using a custom font. I created the web font on Font Squirrel (as advised in other posts), uploaded it.
How can I add it to font list menu in the control panel?
Please note that I’m using a child theme, if it makes any difference
March 2, 2016 at 3:13 pm #592086Hi Mustafa!
Please see – http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/ and then add following code to Quick CSS in Enfold theme options under General Styling tab
.av-main-nav li a { font-family: "your-custom-font"!important; }
Cheers!
YigitMarch 2, 2016 at 5:02 pm #592188Hi @Yigit
Thanks a lot
Yes, I already followed that article.
What I’m trying to achieve is adding these uploaded (non-google) fonts to the font menu
Moreover, I (sort of) tried your suggestion, but didn’t work. Here’s what I did in details:
1- I have a child theme, which contains just
functions.php
andstyle.css
2- I added the font stylesheet to style.css as follows@font-face { font-family: 'JFFlatMedium'; src: url('css/jf-flat-medium-webfont.eot'); src: url('css/jf-flat-medium-webfont.eot?#iefix') format('embedded-opentype'), url('css/jf-flat-medium-webfont.woff2') format('woff2'), url('css/jf-flat-medium-webfont.woff') format('woff'), url('css/jf-flat-medium-webfont.ttf') format('truetype'), url('css/jf-flat-medium-webfont.svg#jf_flatmedium') format('svg'); font-weight: normal; font-style: normal; }
3- I created a folder (inside the child theme folder) called
css
, and added all the font files
4- I added your recommended css to Quick CSS sectionThe result is that the main text is displayed in the font selected Defines the Font for your body text in the Font tab in the control panel, and the menu items are displayed in browser’s default font
March 2, 2016 at 5:30 pm #592203Hi!
Do you mind posting FTP credentials here privately as well so we can look further into it.
Regards,
YigitMarch 2, 2016 at 5:51 pm #592223March 3, 2016 at 2:36 pm #592620 -
AuthorPosts
- You must be logged in to reply to this topic.