Tagged: e
-
AuthorPosts
-
November 13, 2014 at 4:20 pm #350691
Hi,
I’m using the Open Sans in my site (http://www.homelink.fr/wp/en/) and the different weight don’t display correctly.
Some examples:
– in the slider, the rotating titles are supposed to be light (font-weight 300) and displayed rather like normal(400) or semi-bold (600)
– under the slider, the white text in the blue and orange headband is also supposed to be light
– under this headband, the title “French home exchange Trends” is supposed to be extra-bold (800)
etc.
Comparing to the Google examples (https://www.google.com/fonts/specimen/Open+Sans), there is nothing good.I’m also using the Thirsty font(http://www.fonts.com/font/yellow-design-studio/thirsty-script/regular/web-font) for 2 titles at the bottom of the page (“Press Area” and “Help/FAQ”) and it doesn’t display.
When i first instal and setup the site, all these fonts were displaying normally. I don’t know exactly what and when this happen because I didn’t follow this site for months before I had to update all on it (wp, the plugins, Enfold).
I tried to deactivate al the plugins and nothing change.
Looking the css with Firebug, everything seems to be alright. But it’s not.Did you heard about this kind o problem? Any idea to help me?
Best,
David
November 14, 2014 at 12:38 am #351026Hi CAUM!
Try deactivating all plugins and then send us a link and we’ll take a look. You can set your reply as private if you wish.
Best regards,
ElliottNovember 14, 2014 at 10:43 am #351182This reply has been marked as private.November 14, 2014 at 11:46 pm #351577Hi!
I checked all of those elements you listed and they have the correct font weight applied in your CSS. What browser are you using? Can you take a screenshot and highlight the differences?
Cheers!
ElliottNovember 17, 2014 at 12:22 pm #352337This reply has been marked as private.November 17, 2014 at 9:38 pm #352694Hi!
Try adding this to your custom CSS.
.template-page .entry-content-wrapper h1, .template-page .entry-content-wrapper h2 { letter-spacing: 0px !important; }
And then do this, https://kriesi.at/support/topic/adding-cyrillic-subset-to-predefined-theme-google-font/, and make sure to add the “200” weight along with 400 and 600 for open sans.
Cheers!
ElliottNovember 21, 2014 at 2:15 pm #355140This reply has been marked as private.November 21, 2014 at 9:47 pm #355598Hi!
It looks like Open Sans does not have a 200 weight but it does have 300. You can do a search for open sans here to see, http://www.google.com/fonts.
Try this.
add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Open Sans'] = 'Open Sans:300,400,600,800'; return $fonts; }
If it’s still not working then send us a WordPress login and we’ll take a closer look.
Cheers!
Elliott- This reply was modified 10 years, 1 month ago by Elliott.
November 24, 2014 at 4:43 pm #356937This reply has been marked as private.November 24, 2014 at 11:54 pm #357231Hi!
It’s not a bug. All we do is grab the fonts from google and display them. If you want to use the italic version then change my previous code to this.
add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Open Sans'] = 'Open Sans:300italic,400italic,600italic,700italic,800italic'; return $fonts; }
Or if you just want to use your code and don’t want to edit the header.php file then you can try adding this to the bottom of your functions.php file.
add_action( 'wp_head', 'enfold_customization_addheaderscript' ); function enfold_customization_addheaderscript() { echo "<link href=’http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,latin-ext’ rel=’stylesheet’ type=’text/css’>"; }
Best regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.