Use Google Fonts In Custom CSS

By: Michael Clark | Asked: 03/22/2024
ForumsCategory: How-toUse Google Fonts In Custom CSS
Michael ClarkMichael Clark asked 8 months ago
Whats the best way to use Google fonts in custom CSS? 
1 Answers
Faisal AhammadFaisal Ahammad answered 8 months ago
You can use the following code to use Google fonts in Custom CSS.   @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')   .selector {   font-family: "Roboto", sans-serif; }  
Faisal AhammadFaisal Ahammad replied 8 months ago

Better code view: https://i.ibb.co/NTLFNrN/image.png
Source code: https://codefile.io/f/WCP9Dz2E2N

Michael ClarkMichael Clark replied 8 months ago

thanks!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right