How to add fallback font

Home Forums Jevelin Theme How to add fallback font

Home Forums Jevelin Theme How to add fallback font

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    RESOLVED Posts
  • cagross
    Participant

    Hello. On my page I have added a ‘Custom Heading’ WPBakery element. In it, I have unticked ‘Use theme default font family?’ and specified my font family as Josefin Sans (see attached screenshot jba-font-back). On the front-end, this style is added via inline style. But it is added without any fallback font (see attached screenshot jba-font-front). Is there a way to add a fallback font, so that the style rule I am adding is:

     

    font-family:’Josefin Sans’,sans-serif;

     

    The page in-question is here.

     

    Thanks.

    • This topic was modified 4 years, 10 months ago by cagross.
    Attachments:
    You must be logged in to view attached files.

    Solution for this topic

    Hi @cagross,

     

    I hope you are well today and thank you for your question.

     

    You can achieve it by adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    h1.vc_custom_heading {
        font-family: 'Josefin Sans',sans-serif;
    }

     

    Best regards,
    Shufflehound team

    cagross
    Participant

    That’ won’t work because in this case, the font is set via inline style, which will supersede any custom CSS I add. In light of that, I would need to add !important. Would you agree?

    Yes, I agree that you should make it more specific.

    cagross
    Participant

    OK got it, thanks. We can consider this resolved.

    You are most welcome here 🙂

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