Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #445577

    Hello,
    how can I import the type “Source Sans Pro Normal 400 Italic” in my Child-Theme?

    Thanks for your help

    #445627

    Hi paaploo;
    You can find many the information that you are looking for, and further : http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    #446290

    Hi @paaploo!

    Did you have any luck adding the additional font?

    Cheers!
    Rikard

    #446314

    I can load the font family, but not the Italic Style

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

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

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

    #446499

    Hey!

    Do you mind creating a temporay admin login and posting it here privately?

    Cheers!
    Yigit

    #446511
    This reply has been marked as private.
    #447861

    Hi!

    I am really sorry, I pasted a wrong code into your child’s functions.php and now it does not load anymore. Please post FTP login as private reply here, so we can change it back as soon as possible. You could do it by yourself as well, when you open your child’s functions.php via FTP and replace my mess with your old code from above or even better use this one to implement “Source Sans Pro Normal 400 Italic”:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400italic';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400italic';
    return $fonts;
    }
    

    I am really sorry! and I hope the new code will help you.

    Regards,
    Andy

    #448314
    This reply has been marked as private.
    #448430

    Hi!

    I fixed functions.php file. Which element would you like to make in italic? Please point it out, so we can provide you custom CSS code :)

    Cheers!
    Yigit

    #448438

    :-)

    it will be a Subhead, but we haven’t choose the correct font size at that moment

    #448441

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab :)

    .av-subheading { font-style: italic !important; }

    Cheers!
    Yigit

    #448452

    tank you :-)

    #448456

    Hey!

    You are welcome, glad we could help :) Let us know if you have any other questions or issues and have a great weekend!

    Cheers!
    Yigit

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Use special google web font’ is closed to new replies.