Поддержка Проблемы и решения Как подключить 2 семейства шрифтов?

  • В Google Fonts выбираю 2 семейства, Roboto и Roboto Condensed.

    https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Roboto:wght@400;700&display=swap

    Подключаю их в WordPress

    function my_theme_css_and_scripts() {
        wp_enqueue_style('google-fonts', 'https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Roboto:wght@400;700&display=swap', false);
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_css_and_scripts' );

    Но в исходном коде страницы отображается только Roboto.

    <link rel='stylesheet' id='google-fonts-css' href='https://fonts.googleapis.com/css2?family=Roboto%3Awght%40400%3B700&display=swap&ver=5.9' media='all' />

    Почему пропадает Roboto Condensed?

  • Тема «Как подключить 2 семейства шрифтов?» закрыта для новых ответов.