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.

    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)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form