Adjustment sizes of the H1, H2 and other headers

9 replies2 participantsUpdated by Luca Rossi

  • Avatar: martijntje
    martijntje
    Participant

    Hi – I got a question about adjusting heading sizes.

    In the ‘Theme Custom CSS’ I got rules for changing some of the styles of the H2 and H3 headers, for example:

    H3
    {
    font-family: “niveau-grotesk”, sans-serif;
    font-weight: 600;
    font-style: normal;
    color: #e51f25;
    size: 2px;
    line-height: 28px;
    }

    The font-type, the color is loading correctly; the size and line-height are not loading in the frontend. The font is a different size than the 2px I entered.

    Do you have any suggestions?

    Tnx.

    Please, contact administrator
    for this information.

    9 Answers

    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @martijntje,

    Your size of heading is incorrect, please try with this custom CSS codes instead:

    body h3
    {
         font-family: "niveau-grotesk", sans-serif;
         font-weight: 600;
         font-style: normal;
         color: #e51f25;
         font-size: 28px;
         line-height: 28px;
    }

    Hope it helps!

    Avatar: martijntje
    martijntje
    Participant

    Hi – tnx! It worked.

    I also have a H2 on that page which won’t change with your code, see ‘You may be interested in…’.

    Do you have solution for that?

    Tnx!

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff

    Hi @martijntje,

    You can try with this code:

    
    body h2.products-title.cross-sell-products-title {
         font-family: "niveau-grotesk", sans-serif;
         font-weight: 600;
         font-style: normal;
         color: #e51f25;
         font-size: 28px;
         line-height: 28px;
    }
    

    Hope it helps!

    Avatar: martijntje
    martijntje
    Participant

    Hi thanks,

    The code works, but I does not change the H2 product titles.

    Is there a code for that adjustment?

    Thanks in advance.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @martijntje,

    Could you please update previous CSS codes to this?

    
    body .content-product .product-title,
    body h2.products-title.cross-sell-products-title {
         font-family: "niveau-grotesk", sans-serif;
         font-weight: 600;
         font-style: normal;
         color: #e51f25;
         font-size: 28px;
         line-height: 28px;
    }
    

    Let us know how it goes!

    Avatar: martijntje
    martijntje
    Participant

    Hi tnx – it fixed the type, but the line-height is not changing at the frontend when I change it in the css. Is there a way to fix that?

    Avatar: Justin
    Luca Rossi
    Support staff

    Hi @martijntje,

    Can you force the line-height with the important?

    Like this:

    
    body .content-product .product-title,
    body h2.products-title.cross-sell-products-title {
         font-family: "niveau-grotesk", sans-serif;
         font-weight: 600;
         font-style: normal;
         color: #e51f25;
         font-size: 28px;
         line-height: 28px !important;
    }
    

    Let us know how it goes!

    Avatar: martijntje
    martijntje
    Participant

    Tnx – it fixed it.

    Problem is now that it works in Safari, in other browsers (Firefox, Chrome) the product title is in Times New Roman.

    Is there a fix for this?

    Tnx.

    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @martijntje,

    We hope this message finds you well.

    Kindly ensure that the Niveau Grotesk font is installed correctly on your system. Safari requires certain font types to be properly installed in order to display them as intended.

    Please note that Safari generally supports a wide range of font formats, including TTF, OTF, WOFF, and WOFF2. It also accommodates extended system fonts such as ui-serif, ui-sans-serif, ui-monospace, and ui-rounded. However, there may be occasional issues with specific font formats or configurations—particularly with self-hosted Google Fonts and certain font weights. These issues can often be resolved by adjusting the @font-face rule or modifying the font-weight properties in your stylesheet.

    Should you need any further assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register