Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Fonts to use
New Landing › How can we help? › Themeforest Theme Support › Flexform › Fonts to use
- This topic has 19 replies, 3 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Flexform
-
July 30, 2014 at 6:07 pm #96201
Hello,
I would like to use DIN PRO font on my website.
I have the *.otf files on my computer. (black, bold, light, medium, regular)Could you please help me to upload them as I can not do it from your Flexform options panel?
Thanks,
DJJuly 31, 2014 at 11:23 am #96402Hi,u
Do you have any java script code to load fonts? You can check this options http://flexform.swiftideas.net/documentation/#font-options.
Thanks ๐
With Best Regards
Swift IdeasJuly 31, 2014 at 1:09 pm #96465Hello,
No js code available, just a rar file with the five formats in *.otf.
There is no way to implement it through ftp?Rgds,
DJJuly 31, 2014 at 1:18 pm #96467Hi,
You should have any documentation. Please upload font at server in a directory named fonts and use code like:
@font-face {
font-family: ‘fontName’;
src: url(‘fontName.eot?’) format(‘eot’), url(‘fontName.woff’) format(‘woff’), url(‘GraublauWeb.ttf’) format(‘truetype’);
}You need to change the path and name of fonts.
Thanks ๐
With Best Regards
Swift IdeasJuly 31, 2014 at 1:40 pm #96475This reply has been marked as private.August 1, 2014 at 7:49 am #96702Hi,
Now fonts are loading perfect so please use fonts through css code now.
Thanks ๐
With Best Regards
Swift IdeasAugust 1, 2014 at 7:58 am #96703Hi Mohammad,
Thanks for your help!
I just see the code you add. Thanks again mate!
Indeed, the code I wrote was not perfect!!However, I do not find it as a possible choice in “options theme/font options” within the standard list of choice and in the menu ”format” tab when I wrote an article.
So, basically, my guess is how can use it as the default font for my whole site?
Thanks again for your help,
DJAugust 1, 2014 at 8:52 am #96715Hi,
I added given below code at style.css of theme to load fonts-:@font-face { font-family: 'DINPro'; src: url(fonts/DINPro-Black.otf?') format('otf'), url('fonts/DINPro-Bold.otf') format('otf'), url('fonts/DINPro-Light.otf') format('otf'), url('fonts/DINPro-Medium.otf?') format('otf'), url('fonts/DINPro-Regular.otf') format('otf'); }
I dont know that how to use so you need to check documentation.
Thanks ๐
With Best Regards
Swift IdeasAugust 1, 2014 at 9:26 am #96739Hi,
I rewrote your code on the custom css box and also add it to style.css but it is still not working.
@font-face {
font-family: DinPro;
font-weight: regular;
src: url(“http://www.weemake.fr/wp-content/themes/flexform/fonts/DINPro-Regular.otf”) format(“opentype”);
}@font-face {
font-family: DinPro;
font-weight: bold;
src: url(“http://www.weemake.fr/wp-content/themes/flexform/fonts/DINPro-Bold.otf”) format(“opentype”);
}@font-face {
font-family: DinPro;
font-weight: black;
src: url(“http://www.weemake.fr/wp-content/themes/flexform/fonts/DINPro-Black.otf”) format(“opentype”);
}@font-face {
font-family: DinPro;
font-weight: light;
src: url(“http://www.weemake.fr/wp-content/themes/flexform/fonts/DINPro-Light.otf”) format(“opentype”);
}@font-face {
font-family: DinPro;
font-weight: medium;
src: url(“http://www.weemake.fr/wp-content/themes/flexform/fonts/DINPro-Medium.otf”) format(“opentype”);
}August 1, 2014 at 9:36 am #96742Hi,
Please remove that code and use code for a tag like p :-
p{font-family: DinPro !important; font-weight: light;}
Thanks ๐
With Best Regards
Swift IdeasAugust 1, 2014 at 9:45 am #96751I remove it from the css custom box or the style.css sheet, or from both?
August 1, 2014 at 9:49 am #96758Hi,
Only from custom css.
Thanks ๐
With Best Regards
Swift IdeasAugust 1, 2014 at 10:02 am #96770OK, I put back everything you did in both “custom css box” and “style.css” sheet, removed the first piece of code in “custom css box” to put the last one you sent me.
It’s still not working.I am trying to find a way in my side but it’s tough..
August 1, 2014 at 10:10 am #96782Hi,
Please dont remove from style.css and contact at font developer to get it working. They should help to you sure.Thanks ๐
With Best Regards
Swift IdeasAugust 1, 2014 at 10:36 am #96793This is on my style.css sheet:
@font-face {
font-family: ‘DINPro’;
src: url(fonts/DINPro-Black.otf?’) format(‘otf’), url(‘fonts/DINPro-Bold.otf’) format(‘otf’), url(‘fonts/DINPro-Light.otf’) format(‘otf’), url(‘fonts/DINPro-Medium.otf?’) format(‘otf’), url(‘fonts/DINPro-Regular.otf’) format(‘otf’);
}and this is in the custom css box:
{font-family: DinPro !important; font-weight: light;}There is a font folder in wp-content/themes/flexform/css while we included a ”fonts” folder in wp-content/themes/flexform/
Maybe the “fonts” folder is not located in the right place? -
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.