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

    Hi,

    1. I would like to add an fontello envelope icon to the top bar just besides the telephone icon. However I can’t help myself: this is the code in order to show the phone icon:
    <span class=”avia_button_icon” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello”></span>787866455

    what would be the right code in order to show an envelope instead of the telephone icon?

    2. I would also like to add the “Playfair Display” google font to the theme. How can I do that the best way?

    Many Thanks in advance.

    Best
    Alec

    #274889

    Hey zero1media!

    For the phone/secondary text field in the header you can add the html directly to the field.

    You can add additional google fonts with the functions here: https://kriesi.at/support/topic/new-custom-font/#post-121900

    Regards,
    Devin

    #275055

    Hi Devin,

    thanks for the swift reply.

    I figured out question #2. however for #1 I think you misunderstood me.

    The code I showed meant above (<span class=”avia_button_icon” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello”></span>787866455) is showing a phone icon….but I would need an envelope icon.

    Meaning that I assume that in data-av_icon=”” the  is the code for the phone. What would be the right one for an envelope?

    Thanks
    Alec

    #275065

    one more thing regarding question 1.

    I entered the following code just below if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Playfair+Display’] = ‘Playfair+Display’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Playfair+Display’] = ‘Playfair+Display’;
    return $fonts;
    }

    It does show me the font in the enfold settings….however when the font is chosen the theme is rendering the default font but not the selected Playfair Display font…what did I do wrong?

    Thx
    Alec

    #275460

    Hi!

    Thank you for using the theme!

    Please edit functions.php, find this code on line 16:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

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

    You’ll see the Playfair Display font at the very bottom of the heading font selection.

    Cheers!
    Ismael

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