-
AuthorPosts
-
February 4, 2015 at 2:25 pm #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’;February 4, 2015 at 11:16 pm #391003Hey!
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,
JosueFebruary 5, 2015 at 2:48 am #391043I use success this code.
but how can i select this font?
did not appeared this font in general styling.
February 5, 2015 at 3:08 am #391046Hi!
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!
JosueFebruary 6, 2015 at 2:57 am #391804no… this code… is not ok…
February 6, 2015 at 4:43 am #391822Hi!
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,
JosueFebruary 9, 2015 at 4:14 am #392848Hi..
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.
February 9, 2015 at 10:26 pm #393354Hi,
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.
February 10, 2015 at 3:13 am #393458There is no change…..TT
February 10, 2015 at 5:44 am #393478Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueFebruary 10, 2015 at 7:12 am #393511This reply has been marked as private.February 10, 2015 at 7:51 am #393531Hey!
Thanks, it works but could you please enable file-editing from the Dashboard (http://screencast.com/t/A5Ix77xEZM)?
Cheers!
JosueFebruary 10, 2015 at 7:56 am #393532Please 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.
February 11, 2015 at 7:18 am #394142Hi!
There is a way to make this change survive updates but you’d need to set-up a child theme first.
Best regards,
JosueFebruary 11, 2015 at 9:14 am #394151i’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
February 11, 2015 at 11:02 am #394197Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.