Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #692502

    on former days of enfold i added my Custom Google Fonts as in : http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    if you goto Google and look what Font you like ( btw. they give on choosing one of them “Popular Pairings with Font” on left bottom)
    You get the embed code f.e. from @import rule

    <style>
    @import 'https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i';
    </style>

    i don’t know if this was with old version of Google Fonts so but these little Plus Sign in between the Font name are not usefull for us.

    Remove it in your code when adding it via child-theme functions.php

    So code from @import rule above is than:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Playfair Display'] = 'Playfair Display:400,400i,700,700i';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Playfair Display'] = 'Playfair Display:400,400i,700,700i';
    return $fonts;
    }

    it is important to get rid of that Plus Sign – otherwise the Font is seen in Options Dialog of Enfold but not on your Frontend !
    I thought in former times i did it with plus – but i must see that now this does not work anymore

    #692513

    my tip here for pajicu was definitly wrong – thats why i opend here for him a new thread. Sorry

    #694084

    Hi,

    Can you post a link to a Page where this occur? i can’t reproduce the issue in any of my installations.

    Best regards,
    Josue

    #694542

    it is ok Josue thanks – in a different thread which is closed i did the fault to say that you see the code to insert from the @import rule : with the + signs in between – but with these signs between f.e.
    Playfair+Display does not work.

    i remember that in former times it worked too with the + signs in between – but now it does not work.

    #696976
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.