Tagged: Open Sans Font
-
AuthorPosts
-
June 4, 2014 at 4:30 am #274361
I have tried following the instructions given below but I still cannot seem to find a way to use multiple weights and styles for the font Open Sans. Can someone please help me better understand? Thanks.
https://kriesi.at/support/topic/add-new-font/#post-234663
- This topic was modified 10 years, 6 months ago by JPOsteen.
June 4, 2014 at 10:19 pm #274770Hey!
Put that code in functions.php after line 16:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Regards,
JosueJune 6, 2014 at 9:22 pm #275823Josue,
Thanks. I followed your advice, but I can’t find the option anywhere on the back-end to choose what style/weight of the font Open Sans. It appears my only options are still the default 400 or 600 weight.
Thanks,
JPOsteenJune 6, 2014 at 9:25 pm #275827Hi!
You’d need to use custom CSS to set the weights, if you tell me which elements you want to affect i can help you with that.
Regards,
JosueJune 6, 2014 at 9:34 pm #275834For now, I’m trying to adjust the text box under the slider of my home page…but I would like the option to do it in other places as well. Maybe it would be best to set each heading option (H1, H2…) to a particular weight and style so I can choose more easily in the future.
my website: http://www.LoveRescues.org
- This reply was modified 10 years, 6 months ago by JPOsteen.
June 6, 2014 at 11:56 pm #275903Try adding this code to the Quick CSS:
#av_section_1 div.avia_textblock * { font-weight: 900; }
I’d recommend you to enable this, that way you can apply this mods to specific elements only.
Cheers!
JosueJune 7, 2014 at 1:50 am #275957Josue,
Thanks for the tip, but I’m trying to use a 300 weight.
1. When I tried typing 300, by default it still used 400 in firefox.
2. Where do I turn on the custom CSS field for ALB elements?Thanks,
JPOsteenJune 7, 2014 at 1:54 am #275958Hi!
1. You are not including the 300 type, check your code in functions.php.
<link rel=’stylesheet’ id=’avia-google-webfont’ href=’//fonts.googleapis.com/css?family=Open+Sans:400italic,400,600,800|Open+Sans:400,600′ type=’text/css’ media=’all’/>
2. You just have to add this line to functions.php:
add_theme_support('avia_template_builder_custom_css');
The article i linked explain that in detail.
Best regards,
JosueJune 7, 2014 at 5:31 am #275997Josue,
In your response to my previous #1, I can’t find the code in the functions.php that you are talking about. What you have written looks more like HTML code to me. I’m sorry if I’m coming across as completely ignorant…but I kind of am when it comes to this. :-)
June 7, 2014 at 5:49 am #275998Hi,
Can you please create me an administrator account? post it here as a private reply.
Regards,
JosueJune 7, 2014 at 5:53 am #275999This reply has been marked as private.June 7, 2014 at 5:58 am #276000Use wordpress at kriesi.at
- This reply was modified 10 years, 6 months ago by Josue.
June 7, 2014 at 6:01 am #276002This reply has been marked as private.June 7, 2014 at 6:54 am #276005Done:
http://loverescues.org/I modified the code in functions.php:
$avia_config['posts_on_current_page'] = array(); add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Open Sans 2'] = 'Open Sans:300,400,600,800'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Open Sans 2'] = 'Open Sans:300,400,600,800'; return $fonts; }
Regards,
JosueJune 7, 2014 at 7:01 am #276006Thanks!
Will I have to use custom CSS to change font weights on other headings in the future?
June 7, 2014 at 7:25 am #276010For some reason the font weight of that first heading is still showing up as 400 in firefox. Safari is fine, but firefox is not.
June 7, 2014 at 10:41 pm #276138Hey!
It should work now.
Make sure you always have these settings selected in the Theme Options (Styling):
Best regards,
JosueSeptember 13, 2014 at 1:07 am #318366Josue,
Hey man, I seem to have lost the option to select “Open Sans 2” since I’ve updated the theme. Can you tell me how to get them back? Thanks!
September 13, 2014 at 1:10 am #318367Hi!
Add this again to functions.php (after line 16):
$avia_config['posts_on_current_page'] = array(); add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Open Sans 2'] = 'Open Sans:300,400,600,800'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Open Sans 2'] = 'Open Sans:300,400,600,800'; return $fonts; }
If you want to avoid this every time you update consider using a child theme or a plugin like this to store custom functions separated from the theme core.
Cheers!
JosueSeptember 15, 2014 at 8:04 pm #319381Thanks!
September 15, 2014 at 8:26 pm #319397You are welcome, always glad to help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Open Sans font with multiple weights and styles’ is closed to new replies.