Tagged: ,

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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

    #766148

    Hey 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,
    Yigit

    #776584

    Hi,

    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

    #777541

    Hi,

    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,
    Victoria

    #780010

    Hi,
    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, 7 months ago by toolflex.
    #780330

    Hi @toolflex,

    Maybe you could try downloading the font and loading them from your site?

    Best regards,
    Rikard

    #788572

    Hi,

    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!

    #788726

    Hi,

    Function names cannot contain blank spaces:

    avia_add_Contrail One_font

    Best regards,
    Rikard

    #789416

    Hi 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.

    #789472

    Hi,

    Please consider using a caching plugin such as this one – https://wordpress.org/plugins/w3-total-cache/ :)

    Best regards,
    Yigit

    #789515

    have 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, 6 months ago by Guenni007.
    #789539

    Hi Yigit,
    as mentioned above I’ve tried that and it did not help,
    any other suggestions ? :)

    #789984

    Hi,

    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,
    Ismael

    #791595

    Hi Ismael,
    THANK YOU,
    the problem was that sneaky number 2 at the end of .woff,

    it looks great now, thank you!

    #791625

    Hi,

    Great! Glad that you figured it out. Please feel free to open a new thread if you need further assistance. :)

    Best regards,
    Ismael

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Uploading own fonts’ is closed to new replies.