WooCoommerce waring because not name in theme.json
-
Hello and thanks for the plugin
When I add a font, the theme.json get updated with the new font, but it lacks the name key and WooCommerce gives this warning:
PHP Warning: Undefined array key “name” in /home/hh/domains/fifthpress.org/public_html/style/wp-content/plugins/woocommerce/src/Internal/ComingSoon/ComingSoonRequestHandler.php on line 188
In the theme.json I added the name key and the warning stopped
Before:
"fontFamily": "Font Awesome 5 Free", "slug": "font-awesome-5-free", "fontFace": [ { "fontFamily": "Font Awesome 5 Free", "fontStretch": "", "fontStyle": "normal", "fontWeight": "400", "src": [ "https://test.devel/wp-content/uploads/2024/07/fa-regular-400.woff2" ] }, { "fontFamily": "Font Awesome 5 Free", "fontStretch": "", "fontStyle": "normal", "fontWeight": "900", "src": [ "https://test.devel/wp-content/uploads/2024/07/fa-solid-900.woff2" ] } ], "isBcf": true }
After:
"fontFamily": "Font Awesome 5 Free", "slug": "font-awesome-5-free", "name": "font awesome", "fontFace": [ { "fontFamily": "Font Awesome 5 Free", "fontStretch": "", "fontStyle": "normal", "fontWeight": "400", "src": [ "https://test.devel/wp-content/uploads/2024/07/fa-regular-400.woff2" ] }, { "fontFamily": "Font Awesome 5 Free", "fontStretch": "", "fontStyle": "normal", "fontWeight": "900", "src": [ "https://test.devel/wp-content/uploads/2024/07/fa-solid-900.woff2" ] } ], "isBcf": true }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.