Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #709239

    Hi Enfold,

    I already asked this question under someone elses question – Maybe that was a mistake. I did not get any reply. So I will try here instead.

    I am trying to enter a new font on my site http://www.oplys.com using the “normal procedure” for this. I have read that I need to paste a piece of code onto the functions.php section. But I am unsure of the following: (in the attached code piece in the end of question)

    – I am sure that I need to replace ‘PT Sans Narrow’ with ‘Titillium Web’ / Line 4
    – How about were it says ‘PT Sans Narrow:400,700’ ? Should i write Titillium Web and then adding diffenrent numbers for different types? / Line 4
    – Line 5, same as in line 4 – replacing font type name all the way through and then adding 400, 700 etc for different types?
    – etc etc

    I want to enter this (link): Titillium Web

    To avoid mistakes, it would be great if you can enter the correct code piece including the new Titillum font. For me to enter into my site directly. I hope that is OK to ask for :-)

    Thank you.
    Br Claus

    Code piece: (were I need to enter new font name)

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {

    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    return $fonts;
    }

    #709259

    Hey Claus!

    I added following code to Functions.php file of your child theme in Appearance > Editor

    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,600,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,600,700';
    return $fonts;
    }

    Please review your website now

    Cheers!
    Yigit

    #709283

    Fantastic – More than I expected. It works perfectly.

    Thanks a lot Yigit

    Br Claus

    #709297

    Hi!

    You are welcome!

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘I need to use the Titillium Web font on my site’ is closed to new replies.