WAIT: Google Fonts CSS2 giving 400: Invalid selector - Expected a digit error

Hi,

I’m having issues with Bricks Builder’s Google fonts not working after an update.

The typography is all set under the Theme Styles for the body and headings.

After checking the console log the link below is giving:

400: Invalid selector - Expected a digit
(arrow symbol shown under bolder):

https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,bolder%20;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap

I’ve tried selecting manual font weights too under Body typography as below which didn’t resolve the problem:

100, 200, 300, 400, 500, 600, 700, 800, 900

For a temporary fix, I’ve manually updated the code under:

/wp-content/themes/bricks/includes/assets.php line 910:

From https://fonts.googleapis.com/css2 to https://fonts.googleapis.com/css

This gets the font to work. Is there a fix for this?

Hi,
Thanks so much for your report!

Unfortunately, I cannot reproduce the issue. Poppins doesn’t provide a weight called “bolder”, causing the issue. Do you use any caching? If so, please clear your cache and/or try to remove the theme-style fonts, save, clear the cache again, and add them afterward.

Best regards,
timmse