Skip to content

Code Snippets

handy quick code snippets to save time

  • Home

custom fonts

Posted on 9 November 20237 March 2024 by LouiseF

Make sure they’re in woff2 format. Upload the font via FTP to themes/theme name/fonts/

Use https://www.fontsquirrel.com/tools/webfont-generator to convert them if they’re in another format.

@font-face{font-family:FONT NAME;font-style:normal;font-weight:400;font-display:swap;src:url(/wp-content/themes/LFWD/fonts/CHANGE THIS.woff2) format('woff2');}
Posted in fonts

Post navigation

Previous: z-index
Next: cookie bar