Why can’t I enqueue multiple Google Fonts in WordPress functions.php?
Question: I’m using wp_enqueue_style to enqueue this Google Font file. Here is my code: wp_enqueue_style( ‘google-fonts’, ‘https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,700;1,400&family=Neuton:ital,wght@0,300;0,400;0,700;1,400&display=swap’, [] ); This is in my functions.php file. However, when I view source on my loaded page, the URL for that font file is cut down to: https://fonts.googleapis.com/css2?family=Neuton%3Aital%2Cwght%400%2C300%3B0%2C400%3B0%2C700%3B1%2C400&display=swap&ver=5.3.2 As you can see, the first family param has been removed after being outputted […]
6 Easy Ways to Add Google Fonts to WordPress for Custom Typography
Everybody wants their site to be unique. They don’t want to be stuck with the standard option like everyone else but express their own style and personality with their website. One of the easiest ways to customize a website is to add custom fonts to it. After all, text makes up large part of it […]
How to add custom google fonts to your WordPress site (3 methods)
Typography is more important than most people give it credit for. The fonts you use not only impact your website’s presentation, they can also make it stand out from other sites and render your content easier to read. Picking the same fonts as everyone else might be a safe bet, but it can be worth […]