-
AuthorPosts
-
March 22, 2017 at 4:12 pm #764841
Hi,
how can I upload my own fonts? Can I use them for body and headline after ulpoading?
I already searched for an file on the ftp server but couldn´t find it.Thanks
March 24, 2017 at 1:45 pm #766148Hey seykom,
If you would like to add new Google fonts, please refer to this post – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
If they are custom fonts, please see – http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/
Best regards,
YigitApril 12, 2017 at 11:42 am #776584Hi,
I tried both ways and it almost works,
I tried to integrate a new Google Font. No problems with body text, but the headline font doesn´t seem to be the right one. It´s the same font as in our Logo but in bold but for exemple “C” looks different.I put in this code in the functions.php file.
Is there a mistake or what can I do?
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Quicksand’] = ‘Quicksand:300,700’;
$fonts[‘Quicksand Bold’] = ‘Quicksand Bold:300,700’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Quicksand’] = ‘Quicksand:300,700’;
$fonts[‘Quicksand Bold’] = ‘Quicksand Bold:300,700’;
return $fonts;
}Thanks
April 13, 2017 at 9:26 pm #777541Hi,
First, you don’t need function doing the same twice, second, those weird quotes.
Try this:function avia_add_quicksand_font($fonts) { $fonts['Quicksand'] = 'Quicksand:300,700'; $fonts['Quicksand Bold'] = 'Quicksand Bold:300,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_quicksand_font'); add_filter( 'avf_google_heading_font', 'avia_add_quicksand_font');
If you need further assistance please let us know.
Best regards,
VictoriaApril 19, 2017 at 3:28 pm #780010Hi,
I have the same solution and I am using it in my LayersliderWP,
I had no problem adding the font or using it but the font takes 2-3 seconds before it is loaded, which is quite disturbing.
I tried using cache to fix it but i did not help, any tips of how I can speed up the font loading?Thank you in advanced.
Link to my webshop; http://webshop.toolflex.com/
- This reply was modified 7 years, 8 months ago by toolflex.
April 20, 2017 at 6:58 am #780330Hi @toolflex,
Maybe you could try downloading the font and loading them from your site?
Best regards,
RikardMay 5, 2017 at 6:00 pm #788572Hi,
I´m still having problems with the Google font.
I put this in Quick CSS and it appears in the font list, but it´s not visible in frontend:function avia_add_Contrail One_font($fonts)
{
$fonts[‘Contrail One’] = ‘Contrail One’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_Contrail One_font’);
add_filter( ‘avf_google_heading_font’, ‘avia_add_Contrail One_font’);Thanks!
May 6, 2017 at 6:25 am #788726Hi,
Function names cannot contain blank spaces:
avia_add_Contrail One_font
Best regards,
RikardMay 8, 2017 at 11:23 am #789416Hi Rikard!
I have now uploaded the font to my site in a font folder as suggested in this http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/
and added this in the layout.css file@font-face {
font-family: ‘din-regularitalic’;
src: url(‘../fonts/din-regularitalic-webfont.woff2’) format(‘woff2’),
url(‘../fonts/din-regularitalic-webfont.woff’) format(‘woff’);
font-weight: normal;
font-style: normal;
}it still takes the website a few sconds to lead the font on the first slide, what can I do to improve the loading time?
Thank you in advance.May 8, 2017 at 12:12 pm #789472Hi,
Please consider using a caching plugin such as this one – https://wordpress.org/plugins/w3-total-cache/ :)
Best regards,
YigitMay 8, 2017 at 12:52 pm #789515have you tried to implement it with standard 400 ?
because google did not allow to get rid of that marked 400er field. Maybe it is necessary:add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Quicksand'] = 'Quicksand:300,400,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Quicksand'] = 'Quicksand:300,400,700'; return $fonts; }
@Victoria : yes it seem to be right – but this was the way in documentation for activating for headings and for textfields.
btw: the bold is implemented in the 700 – isn’t it – so there might be a mismatch if you are defining a quicksand bold for 300, 700
and a quicksand too for 300, 700- This reply was modified 7 years, 7 months ago by Guenni007.
May 8, 2017 at 1:16 pm #789539Hi Yigit,
as mentioned above I’ve tried that and it did not help,
any other suggestions ? :)May 9, 2017 at 6:01 am #789984Hi,
I checked the site but I got this font error.
din-regularitalic-webfont.woff2 Failed to load resource: the server responded with a status of 404 (Not Found)
Please check if the font url or directory is correct.
Best regards,
IsmaelMay 11, 2017 at 11:39 am #791595Hi Ismael,
THANK YOU,
the problem was that sneaky number 2 at the end of .woff,it looks great now, thank you!
May 11, 2017 at 1:31 pm #791625 -
AuthorPosts
- The topic ‘Uploading own fonts’ is closed to new replies.