0

In PageSpeed Insights:
Ensure text remains visible during Webfont load
Leverage the font-display CSS feature to ensure text is user-visible while web fonts are loading.

Blank-Theme-Icons/Blank-Theme-Icons.woff2
I want to use this font in my custom theme and adding

font-display :swap
1

Include the Blank-Theme-Icons.woff2 font in your CSS file by adding below lines in your theme's CSS file.

@font-face {
  font-family: 'icons-blank-theme';
  src: url('../fonts/Blank-Theme-Icons/Blank-Theme-Icons.woff2') format('woff2'), url('../fonts/Blank-Theme-Icons/Blank-Theme-Icons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

Hope it helps!!!

  • 1
    Thank's @sumit. It's working – Hafiz Arslan Sep 6 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.