Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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!

    #691400

    Hey 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,
    Vinay

    #691402

    sure!

    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!

    #691403

    Hi,

    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,
    Vinay

    #691405

    Thank 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,400

    #691525

    I’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?

    #692337

    Hi,

    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,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.