Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #390733

    using this code.

     /* functions.php */
    add_filter('avf_google_heading_font','add_fonts');
    add_filter('avf_google_content_font','add_fonts');
    
    function add_fonts($fonts) {
    	/*$fonts['nanum gothic'] = 'nanum gothic:400,700,800';*/
    	$fonts['nanum gothic'] = 'nanum gothic';
    	return $fonts;
    }


    (this screenshot is example to another font(malgun gothic). and, same error )


    (this error is in enfold general styling)

    this is google’s description.
    Link
    @import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);
    font-family: ‘Nanum Gothic’;

    #391003

    Hey!

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

    add_action( 'wp_head',  'custom_func', 10);
    function custom_func() {
    ?>
    <style>
    @import url(https://fonts.googleapis.com/earlyaccess/nanumgothic.css);
    </style>
    <?php
    }

    Regards,
    Josue

    #391043

    I use success this code.

    but how can i select this font?

    did not appeared this font in general styling.

    #391046

    Hi!

    Did you remove this code?

    add_filter('avf_google_heading_font','add_fonts');
    add_filter('avf_google_content_font','add_fonts');
    
    function add_fonts($fonts) {
    	$fonts['nanum gothic'] = 'nanum gothic';
    	return $fonts;
    }

    It should be used in conjunction with the @import rule.

    Cheers!
    Josue

    #391804

    no… this code… is not ok…

    #391822

    Hi!

    That code is needed to include the new font as an option the Theme Options panel otherwise you’d need to manually set which element gets the font with CSS.

    body{
    font-family: "nanum gothic";
    }

    Best regards,
    Josue

    #392848

    Hi..

    i used you said all sources

    but it was throw exception still… like this..

    if you need information about this font

    you can find here
    (Ctrl+F : Nanum Gothic (Korean))

    this is css

    /*
     * Nanum Gothic (Korean) http://www.google.com/fonts/earlyaccess
     */
    @font-face {
      font-family: 'Nanum Gothic';
      font-style: normal;
      font-weight: 400;
      src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot);
      src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot?#iefix) format('embedded-opentype'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff2) format('woff2'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff) format('woff'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Nanum Gothic';
      font-style: normal;
      font-weight: 700;
      src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot);
      src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot?#iefix) format('embedded-opentype'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff2) format('woff2'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff) format('woff'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Nanum Gothic';
      font-style: normal;
      font-weight: 800;
      src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot);
      src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot?#iefix) format('embedded-opentype'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff2) format('woff2'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff) format('woff'),
           url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.ttf) format('truetype');
    • This reply was modified 9 years, 9 months ago by partdb123.
    #393354

    Hi,

    Open /enfold/framework/php/class-style-generator.php and look for line 368:

    $this->extra_output .= "<link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=".apply_filters('avf_google_fontlist', $this->google_fontlist)."' type='text/css' media='all'/> \n";
    

    Replace it by this:

    //$this->extra_output .= "<link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=".apply_filters('avf_google_fontlist', $this->google_fontlist)."' type='text/css' media='all'/> \n";
    

    Regards,
    Josue

    • This reply was modified 9 years, 9 months ago by Josue.
    #393458

    There is no change…..TT

    #393478

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #393511
    This reply has been marked as private.
    #393531

    Hey!

    Thanks, it works but could you please enable file-editing from the Dashboard (http://screencast.com/t/A5Ix77xEZM)?

    Cheers!
    Josue

    #393532

    Please tell me where that Fixed

    I’ve got to work when Theme has been updated again

    and.. https://kriesi.at/support/topic/strange-mobile-menu/ help me…

    • This reply was modified 9 years, 9 months ago by partdb123.
    #394142

    Hi!

    There is a way to make this change survive updates but you’d need to set-up a child theme first.

    Best regards,
    Josue

    #394151

    i’m window program programer. i can’t use time for wordpress anymore..
    so i can’t make child theme and, i don’t know how to make child theme.

    after you edit my page using administrator id

    my page is always someting do like this screenshot

    #394197

    Hi!

    In that case you’d need to edit /enfold/framework/php/class-style-generator.php and look for line 369:

    $this->extra_output .= "<link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=".apply_filters('avf_google_fontlist', $this->google_fontlist)."' type='text/css' media='all'/> \n";
    

    Replace it by this:

    //$this->extra_output .= "<link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=".apply_filters('avf_google_fontlist', $this->google_fontlist)."' type='text/css' media='all'/> \n";
    

    Regards,
    Josue

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