• Resolved twinklepuff

    (@twinklepuff)


    Hi,

    I am trying to fix the Ensure text remains visible during webfont load issue.

    I tried to add the scripts proposed by Hummingbird (below) to Custom CSS/JS in my theme

    
    @font-face{
    	font-family: 'myWebFont';
    	font-display: swap;
    	src: url('myfont.woff2') format('woff2');
    }, 

    It spits out the error

    Unknown property ‘font-display’.

    Am I pasting it into the wrong place? Any advice appreciated.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @twinklepuff

    I hope you’re well today!

    The “unknown property” message in this case can be safely ignored. The CSS editor doesn’t quite “understand” that, though I’m not sure about details. You might want to make sure, however, that the font that you’re trying to address is not an icon font as this property doesn’t apply to icon fonts as far as I’m aware.

    Best regards,
    Adam

    Thread Starter twinklepuff

    (@twinklepuff)

    Thanks. Could you clarify where this code should be pasted please? When I paste it to Custom CSS/JS in my theme (Dashboard/Appearance/Customise), I start getting problems on PageSpeed Insights that had previously been resolved through Hummingbird. Thanks again.

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @twinklepuff,

    I trust you are doing well!

    The code can be added to Appearance> Customize > Additional CSS, or to your child’s theme style.css.

    Please elaborate on what are the issues showing up on the Google Page Speed Insight?

    Please advise,

    Kind regards,
    Nastia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @twinklepuff

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Unknown property ‘font-display’’ is closed to new replies.