Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #495062

    this hebrew Font althou added to the admin is not displayed at the website.

    already added other font in hebrew (Alef). in this method succesfuly

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Alef’] = ‘Alef:400,600,800’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Alef’] = ‘Alef:400,600,800’;
    return $fonts;
    }

    Why Open Sans Hebrew is not displayed at the website.
    its google font same like the the other one. both of theme you can find here: https://www.google.com/fonts/earlyaccess

    Any idea Why this Open Sans Hebrew is not displayed?

    #495344

    Hey!

    That method won’t work because Open Sans Hebrew is an “early access” font. Try adding this at the very end of your theme / child theme functions.php file:

    function include_font() {
    ?>
    <style>
    @import url(https://fonts.googleapis.com/earlyaccess/opensanshebrew.css);
    body{
    font-family: 'Open Sans Hebrew', serif;
    }
    </style>
    <?php
    }
    add_action('wp_head', 'include_font');
    

    Cheers!
    Josue

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