Empty google font import
-
It is possible that your plugin creates an empty import statement:
<link href="//fonts.googleapis.com/css?family=" rel="stylesheet">This is because of the function
blocks_google_fontinsideclass-uagb-helper.php.If the parameter
$font_familyis “”, you still add the non-existent font to the collection. (https://i.imgur.com/G4CQcQy.png)The error occurred because of this line inside a page:
<div class="wp-block-uagb-column uagb-column__wrap uagb-column__background-undefined uagb-block-c82f0a92-42e9-4221-88e1-669dc2738d29"><div class="uagb-column__overlay"></div><div class="uagb-column__inner-wrap"><!-- wp:uagb/info-box {"classMigrate":true,"headingAlign":"left","icon":"","prefixFontSize":20,"prefixFontFamily":"","prefixFontWeight":"","prefixFontSubset":"","headingTag":"h2","headFontFamily":"","headFontWeight":"","headFontSubset":"","subHeadFontFamily":"","subHeadFontWeight":"","subHeadFontSubset":"","headSpace":21,"subHeadSpace":44,"seperatorSpace":30,"block_id":"ab45c9cd-ed06-4977-85c6-ddc600d2e1c3","seperatorWidth":10,"ctaType":"button","ctaText":"About me","ctaLink":"about-me","ctaFontFamily":"","ctaFontWeight":"","ctaFontSubset":"","ctaLoadGoogleFonts":true,"ctaBtnLinkColor":"#ffffff","ctaLinkHoverColor":"#ffffff","ctaBgColor":"#da578d","ctaBgHoverColor":"#d8673d","ctaBorderStyle":"none","ctaBtnVertPadding":15,"ctaBtnHrPadding":40,"ctaBorderRadius":50,"prefixSpace":0} -->I don’t know how i generated the line via the visual editor. As quick fix i removed
"ctaLoadGoogleFonts":true.
The topic ‘Empty google font import’ is closed to new replies.