This topic has 7 replies, 3 voices, and was last updated 9 years ago ago by Robert Hall
Hi,
I’m trying to add custom fonts to my theme. I’ve followed some tutorials online, and this is what I have done:
-I’ve enabled the Custom CSS file option under the Theme Options/Custom CSS
-I’ve added the custom.css file to my wp-content/themes/woopress directory
-I’ve added the webfonts to my wp-content/webfonts folder
-I’ve added the following code to my custom.css file:
@font-face {
font-family: ‘daft_brush’;
src: url('http://www.diewasgoedlyn.co.za/wp-content/WebFonts/DaftBrushWebFonts/daftbrush-webfont.eot');
src: url('http://www.diewasgoedlyn.co.za/wp-content/WebFonts/DaftBrushWebFonts/daftbrush-webfont.eot?#iefix') format('embedded-opentype'),
url('http://www.diewasgoedlyn.co.za/wp-content/WebFonts/DaftBrushWebFonts/daftbrush-webfont.woff') format('woff'),
url('http://www.diewasgoedlyn.co.za/wp-content/WebFonts/DaftBrushWebFonts/daftbrush-webfont.ttf') format('truetype'),
url('http://www.diewasgoedlyn.co.za/wp-content/WebFonts/DaftBrushWebFonts/daftbrush-webfont.svg#daft_brush’) format('svg');
font-weight: normal;
font-style: normal;
}
h1{
font-family:'daft_brush', Arial, sans-serif;
}
But it doesn’t change the font of my Heading 1. Not sure what I am doing wrong?
Hello,
Please show a page where font should be changed.
Best regards,
Jack Richardson.
I want to use it in my posts as well as in the Revolution slider.
Revolution slide has a tutorial on adding manual fonts (http://www.themepunch.com/faq/use-fonts-google-fonts/) but then it is just available in revolution slider. I also want to use it in the blogs and headers on my website. So I figured adding it I tried testing it on h1 first, but after adding the above code, it does not change the font of the h1 in my demo posts. So now I’m wondering if I’m adding the css correctly.
It is not just one page I want to change this, I want to use it all over the website. Pages, blogs, etc.
Hello,
You can add the google fonts in Dashboard->Punch Fonts.
Regards,
Robert Hall.
Hi Robert,
The fonts that I want to use are not available on Google fonts.
It is custom web fonts I bought, and loaded on my server. I want to use fonts other than Google Fonts.
Please see the above thread.
It is fine, I found a plugin that lets me do the custom fonts:
Use Any Font
If anyone else wants to use the same.
I’ve added this code in Global Custom CSS. Please check.
h1{
font-family:'daft_brush', Arial, sans-serif !important;
}
h2{
font-family:'brushup', Arial, sans-serif !important;
}
h3{
font-family:'thirstyroughregularthree', Arial, sans-serif !important;
}
Regards,
Robert Hall.
Tagged: custom fonts, design, styling, themes, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up