-
AuthorPosts
-
September 25, 2016 at 10:46 pm #691396
Hello
I am using the Open Sans font and would like to be able to adjust the font-weight property to 300 or Lighter but it seems that I only have Normal (400) and Bolder (600) available. As this font seems to already be available in the Fonts for the theme, how can I go about adding more weights?Thanks!
September 25, 2016 at 11:04 pm #691400Hey tamerax,
We can add font weight to html elements such as paragraph, or main menu or any specific div elements with specific class names.
Would you mind providing a precise link to your site, showing the elements in question or which block of text need to have the font weight increased? We need to be able to inspect them in order to help :)Best regards,
VinaySeptember 25, 2016 at 11:11 pm #691402sure!
The text that reads “What if everyone,everywhere could enjoy good health?” needs to be at a 300 or “Lighter” font weight. Any time I manaual add in the font-weight to that, nothing changes so this is why I am assuming the Open Sans font doesn’t have those weights included by default.
Thanks!
September 25, 2016 at 11:24 pm #691403Hi,
If you are adding inline style please try to add font-weight: 800!important; The font may be does not support font weight 300.
If you like to control it using css class names
1. Enable custom css class name support for layout builder elements and add a custom class name for the text element
2. add custom css in Enfold > general Styling > Quick CSS.custom-weight { font-weight: 800!important; }
Best regards,
VinaySeptember 25, 2016 at 11:28 pm #691405Thank you for your reply.
I actually want to change all the weight for the texts used to be 300, not just that inline style. That just happens to be the only text I have on there for now.
I also made sure the text has a 300 setting. It marked as Light on this page.
https://fonts.google.com/specimen/Open+Sans?selection.family=Open+Sans:300,400September 26, 2016 at 10:35 am #691525I’m wondering if I can just register the open sans font as I normally would with google fonts with this code:
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
or will that cause a conflict somewhere?September 27, 2016 at 4:26 pm #692337Hi,
Please refer to this post – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/ and add your font with additional weights
Best regards,
YigitAugust 19, 2021 at 1:27 pm #1317486Hi guys,
im trying to get the standard google webfont ‘montserrat’ loaded for the different weights that are not included in the theme.
But when following the steps https://kriesi.at/documentation/enfold/typography/#toggle-id-13
We are getting no result, when uploading the font it says ‘macos’ for the fontname, and also the font does not display, instead the font ‘times’ is loaded…Please advise!
August 22, 2021 at 6:51 pm #1317842 -
AuthorPosts
- You must be logged in to reply to this topic.