Comments on: 6 Easy Ways to Add Google Fonts to WordPress for Custom Typography https://www.designbombs.com/add-google-fonts-wordpress/ Droppin' design bombs everyday! Tue, 04 Oct 2022 00:42:55 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Aletool https://www.designbombs.com/add-google-fonts-wordpress/#comment-82197 Tue, 12 Jan 2021 07:00:32 +0000 https://www.designbombs.com/?p=21882#comment-82197 Wow, I spent 2 days to find solution, you are really made my day, thanks

]]>
By: Ajali Ma'at https://www.designbombs.com/add-google-fonts-wordpress/#comment-63107 Sat, 24 Aug 2019 12:10:58 +0000 https://www.designbombs.com/?p=21882#comment-63107 Helpful. Thank you. I used the plugin option

]]>
By: editorial https://www.designbombs.com/add-google-fonts-wordpress/#comment-49983 Fri, 18 Jan 2019 10:51:15 +0000 https://www.designbombs.com/?p=21882#comment-49983 In reply to Scot.

Depends on the font, in some cases it’s not much different from what the browser assumes it should look like if italic/bold and what it actually is. But in case of light font weight, you do need to include that when you load the font, otherwise the browser just shows the normal weight.

As for the false statement, it’s not my code, Nick wrote the article. But the 3rd parameter in wp_enqueue_style is dependencies, when the CSS file also depends on other registered styles ( CSS files ) to be loaded, so if they aren’t already loaded WordPress loads them.

By default the value is false, so you don’t really need to put that in.

]]>
By: Scot https://www.designbombs.com/add-google-fonts-wordpress/#comment-49947 Thu, 17 Jan 2019 16:40:10 +0000 https://www.designbombs.com/?p=21882#comment-49947 In reply to editorial.

Interesting, I didn’t notice any difference when bolded or italicized, but may have missed it. Plus figured load time was more a factor than something most wouldn’t notice. One last thing, what does the false statement mean in your code. Thanks again for your assistance, greatly appreciated!

]]>
By: editorial https://www.designbombs.com/add-google-fonts-wordpress/#comment-49941 Thu, 17 Jan 2019 10:43:28 +0000 https://www.designbombs.com/?p=21882#comment-49941 In reply to Scot.

You should enqueue the weights you need. For example if you need the light font weight version you’d include 300 as well, otherwise it will just show the normal weight (400) on elements where you have it set to 300. And as for the 400i, if it’s not added then the browser automatically figures out how to display the italicized text. Same applies for 700 (bold), if not loaded the browser will use the regular (400) version and make it bold, which may look different from the actual bold version of the font.

]]>
By: Scot https://www.designbombs.com/add-google-fonts-wordpress/#comment-49930 Thu, 17 Jan 2019 00:30:52 +0000 https://www.designbombs.com/?p=21882#comment-49930 I just implemented you’re enqueing method – simply pasted your code with my own desired font family in functions, then called to that particular font on my stylesheet. It worked! Amazingly.

Just wondering why you need anything other than regular 400 for customizations? Is your “300,400,400i” some kind of combination of font styles or is it different versions for certain situations? I changed it to just regular 400 and it looked exactly the same.

So it’s unclear what it does, especially since loading time apparently slows with each one you add.

Thanks again for posting this and for your help!

]]>
By: Wendy https://www.designbombs.com/add-google-fonts-wordpress/#comment-43520 Mon, 03 Sep 2018 19:19:03 +0000 https://www.designbombs.com/?p=21882#comment-43520 THANK YOU THANK YOU THANK YOU!!

]]>
By: Aliyah https://www.designbombs.com/add-google-fonts-wordpress/#comment-42505 Sat, 28 Jul 2018 00:40:28 +0000 https://www.designbombs.com/?p=21882#comment-42505 Just a thought haha – the plugin step should’ve been #1! It’s what worked best for me. The first couple methods broke my site :/ Haha but it all got worked out, thank you sooo much for the tips!!!

]]>
By: Erick https://www.designbombs.com/add-google-fonts-wordpress/#comment-30523 Mon, 19 Mar 2018 06:20:25 +0000 https://www.designbombs.com/?p=21882#comment-30523 Hi Nick,
Thanks for the great information, and a very well-written article. I was scratching my head wondering if it was possible to use CSS with google fonts and WordPress — I’m glad to have found your article.

]]>
By: Gil Morris https://www.designbombs.com/add-google-fonts-wordpress/#comment-26424 Sun, 24 Dec 2017 16:05:23 +0000 https://www.designbombs.com/?p=21882#comment-26424 Thank you for the helpful information on enqueueing Google Fonts. I have been using a plug-in for a few weeks now to achieve this and have been wanting to get the font to load without using any third party utilities. I was able to follow your instructions and had this completed in under 5 minutes. Awesome tip.

]]>