Can’t pull multiple fonts at once

[ad_1]

First of all, thank you for developing this great plugin.

I recently realized that OMGF is unable to pull multiple fonts for me. For example:

function add_google_fonts() {
wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css2?family=Heebo:wght@600&family=Mukta:wght@400;700&display=swap', false );
}

add_action( 'wp_enqueue_scripts', 'add_google_fonts' );

This results in only one font being found, always the last one—in this case, Mukta.

However, if I write my code this way, it is able to find all fonts:

function add_google_fonts() {
wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css2?family=Heebo:wght@600', false );
wp_enqueue_style( 'wpb-google-fonts-2', 'https://fonts.googleapis.com/css2?family=Mukta:wght@400;700', false );
}

add_action( 'wp_enqueue_scripts', 'add_google_fonts' );

Am I doing something wrong? I am pretty sure it was working fine before. I started seeing this issue with new sites only.

Thanks.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer