Viewing 4 replies - 1 through 4 (of 4 total)
  • Kristiyan Ayvazov

    (@ayvazovkristiyan)

    Hello @polsola,

    The Web Font optimization seems to work properly.

    Could you elaborate on how are you trying to load the fonts and on which page(s) they are not loading as expected?

    Regards,
    Kristiyan

    Thread Starter polsola

    (@polsola)

    Hello @ayvazovkristiyan

    Sure the font is loading is only I’m missing the bold type of that font

    Currently I’m enqueueing the font from my theme with

    wp_enqueue_style('google-fonts', 'https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap' );

    After enabling the font optimitzation the 700 weight do not seem to work, you can check on the homepage the first title should be on bold but all the site is only on 400

    I also tried to remove the enqeue from the theme and add the full url of the Google Font in the SG Optimizer but the result is the same

    Thanks!

    Kristiyan Ayvazov

    (@ayvazovkristiyan)

    Thank you for the update, @polsola.

    We have checked the case and we noticed that there is a difference in the styles provided by Google Fonts.

    For example:
    https://fonts.googleapis.com/css2?family=Poppins%3Awght%40400%3B700&display=swap
    https://fonts.googleapis.com/css?family=Poppins%3Awght%40400%3B700&display=swap

    Our plugin uses the Google CSS API version one.

    The CSS API v2 provides more font weights with this specific family.

    A fix will be provided in the upcoming versions of the plugin.

    We will let you know once this is done.

    Regards,
    Kristiyan

    Thread Starter polsola

    (@polsola)

    Hello @ayvazovkristiyan

    Perfect, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google font optimization with different weights’ is closed to new replies.