Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #406386

    Hi,
    Great theme.
    I’d like to add custom font- is not listed as official Google fonts.
    Thanks!

    #406565
    This reply has been marked as private.
    #406812

    Hi!

    You will have to import the font in your Quick CSS in Enfold–>General Styling. Please refer to this link to see how it’s done: http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp

    Regards,
    Rikard

    #406881
    This reply has been marked as private.
    #406903

    Hey!

    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

    #406930
    This reply has been marked as private.
    #407190

    Hey!

    Please remove the code from functions-enfold.php file and add it to Functions.php file that is inside wp-content/themes/enfold folder. You can also edit the file in Appearance > Editor

    Best regards,
    Yigit

    #409011

    Hi!
    Pulling the font files straight from Google works partly.
    It works only on Firefox, not Explorer.. and only regular font, Header not working unfortunately.
    Luckily I got a set of files which fix this issues. Can I use my own local files?
    Already uploaded those to css folder.
    Can you suggest a fix?

    Thanks!

    #409017

    Hey!

    Luckily I got a set of files which fix this issues. Can I use my own local files?

    Are you referring to CSS files? you can use the following WordPress function to include them in your theme:
    http://codex.wordpress.org/Function_Reference/wp_enqueue_style

    Best regards,
    Josue

    #409019

    Not sure how,
    but got a few who already solved this issue with new set of files and css sheet.
    Here’s the solution, just need the right code to paste:
    ===
    Hia I’ve had the same issue, so I’ve created a new web version of this font which works great with IE. You can download it Here: http://assafk.com/staff/open_sans_hebrew/Opes_Sans_Hebrew_Fixed.rar Thanks! Assaf

    after you download the files in the rar, add this css to use it:
    @font-face {
    font-family: ‘Open Sans Hebrew’;
    font-style: italic;
    font-weight: 700;
    src: url(opensanshebrew-bolditalic-webfont.eot);
    src: url(opensanshebrew-bolditalic-webfont.eot?#iefix) format(’embedded-opentype’),
    url(opensanshebrew-bolditalic-webfont.woff) format(‘woff’),
    url(opensanshebrew-bolditalic-webfont.ttf) format(‘truetype’);
    }
    @font-face {
    font-family: ‘Open Sans Hebrew’;
    font-style: normal;
    font-weight: 700;
    src: url(opensanshebrew-bold-webfont.eot);
    src: url(opensanshebrew-bold-webfont.eot?#iefix) format(’embedded-opentype’),
    url(opensanshebrew-bold-webfont.woff) format(‘woff’),
    url(opensanshebrew-bold-webfont.ttf) format(‘truetype’);
    }
    @font-face {
    font-family: ‘Open Sans Hebrew’;
    font-style: italic;
    font-weight: 800;
    src: url(opensanshebrew-extrabold-webfont.eot);
    src: url(opensanshebrew-extrabold-webfont.eot?#iefix) format(’embedded-opentype’),
    url(opensanshebrew-extrabold-webfont.woff) format(‘woff’),
    url(opensanshebrew-extrabold-webfont.ttf) format(‘truetype’);
    }
    @font-face {
    font-family: ‘Open Sans Hebrew’;
    font-style: normal;
    font-weight: 800;
    src: url(opensanshebrew-extrabold-webfont.eot);
    src: url(opensanshebrew-extrabold-webfont.eot?#iefix) format(’embedded-opentype’),
    url(opensanshebrew-extrabold-webfont.woff) format(‘woff’),
    url(opensanshebrew-extrabold-webfont.ttf) format(‘truetype’);
    }

    OR

    <link href=’http://fonts.googleapis.com/css?family=Open+Sans&#8217; rel=’stylesheet’ type=’text/css’>

    === What method should I use?

    #409023

    Hi!

    Refer to my reply here. That code will do the job in either case.

    Best regards,
    Josue

    #409068

    All is now working with all browsers, but the headers.
    Suggestions?
    Thank you.

    #409086

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #409089
    This reply has been marked as private.
    #409587

    Hey!

    Add this at the very end of your theme / child theme functions.php file:

    add_filter( 'avf_google_heading_font',  'avia_add_custom_font');
    add_filter( 'avf_google_content_font',  'avia_add_custom_font');
    function avia_add_custom_font($fonts) {
    	$fonts['Open Sans Hebrew'] = 'Open Sans Hebrew';
    	return $fonts;
    }

    That will enable Open Sans Hebrew in General Styling > Fonts so you can set the heading elements to that.

    Cheers!
    Josue

    #409588
    This reply has been marked as private.
    #409590
    This reply has been marked as private.
    #409614

    Yeah that would work too, but i’d suggest leaving that in Quick CSS instead, to avoid overriding when the theme gets updated,

    Cheers!
    Josue

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