I give up, I can’t work out why a simple CSS to change font doesn’t work

This topic has 4 replies, 3 voices, and was last updated 5 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: finleydesign
    finleydesign
    Participant
    June 27, 2024 at 10:31

    So im using a custom font, just for one page, I have set the CSS to adjust the font for all H1, h2’s etc

    Doesn’t matter what I do, the font won’t apply, in the inspector it picks up on line number as CSS files that doesn’t exist, i’ve cleared cache, I can get the font to apply if I adjust the CSS in inspector, but nothing changes live

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    June 27, 2024 at 11:28

    Hi @finleydesign,

    Please find this custom CSS:

    
    h2, h4 {
        font-family: MyriadPro-Black !important;
        color:#535657 !important;
    }
    
    h1, h2, h3, h4, h5 {
        font-family: 'MyriadPro-Black' !important;
    }
    

    And change to this:

    
    body h2, 
    body h4 {
        font-family: MyriadPro-Black !important;
        color:#535657 !important;
    }
    
    body h1, 
    body h2, 
    body h3, 
    body h4, 
    body h5 {
        font-family: 'MyriadPro-Black' !important;
    }
    

    Let us know how it goes!

    Avatar: finleydesign
    finleydesign
    Participant
    June 27, 2024 at 12:18

    Perfect thank you

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 27, 2024 at 12:18

    Dear finleydesign,

    Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?

    Click here to share your insights: https://themeforest.net/downloads

    Your support fuels our journey, and we appreciate it more than words can express.

    Best Regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘I give up, I can’t work out why a simple CSS to change font doesn’t work’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.