- This topic has 3 replies, 2 voices, and was last updated 7 years, 6 months ago by
Mahesh.
-
AuthorPosts
-
October 5, 2016 at 4:31 am #100856
Jodi
ParticipantIs it possible to add a font I like, but is not in your list?
October 5, 2016 at 12:08 pm #100898Mahesh
Keymaster@ourherbfarm: Yes, this is possible through Custom CSS. First upload you desired font then go to Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS box and add the following CSS:
@font-face { font-family: myCustomFont; src: url('link_to_source'); }
then use as
p.some_class { font-family: myCustomFont; }
Let me know if any problem.
Regards,
MaheshOctober 6, 2016 at 12:10 am #100964Jodi
ParticipantMahesh,
Thank you for your quick reply. I tried that and it didn’t work. My main site is http://ourherbfarm.com
I put the code in your way (with the first src url, like below), deleted that and added code again with all the links like you see below (these are identicle to the font.css in root folder for main site)@font-face { font-family: 'neucharegular'; src: url('http://ourherbfarm.com/css/neucha-webfont.eot'); src: url('http://ourherbfarm.com/css/neucha-webfont.eot?#iefix') format('embedded-opentype'), url('http://ourherbfarm.com/css/neucha-webfont.woff') format('woff'), url('http://ourherbfarm.com/css/neucha-webfont.ttf') format('truetype'), url('http://ourherbfarm.com/css/neucha-webfont.svg#neucharegular') format('svg'); }
I would like to know if I can just use the theme’s style sheet to make adjustment instead of using the interface in wordpress admin. ??
Also, where are the fonts uploaded in wordpress that would display in the drop down menu in “appearance” in admin? I could just upload them there. That way I could use one at a later date. I only want to use the font for various heading tags.
I so love your template (it was a difficult choice between Helena and Evolution 🙂 but you put Helena on sale, so I couldn’t resist. I have always used free themes and worked with them until I tweaked them where I wanted. This is the first time I purchased a theme and I am so grateful for your work. Please don’t think I am hashing it up when you see the site. Only worked on it a few hours. I will get it 🙂
My Best Regards,
JodiOctober 6, 2016 at 9:36 am #100983Mahesh
Keymaster@ourherbfarm: Please use the following CSS instead:
@font-face { font-family: 'neucharegular'; src: url('http://ourherbfarm.com/css/neucha-webfont.eot'); src: url('http://ourherbfarm.com/css/neucha-webfont.eot?#iefix') format('embedded-opentype'), url('http://ourherbfarm.com/css/neucha-webfont.woff') format('woff'), url('http://ourherbfarm.com/css/neucha-webfont.ttf') format('truetype'), url('http://ourherbfarm.com/css/neucha-webfont.svg#neucharegular') format('svg'); } .entry-title { font-family: 'neucharegular'; }
Note: This is for titles just for testing, please change as you desire.
Regards,
Mahesh -
AuthorPosts
- The topic ‘Add additional font’ is closed to new replies.