Gogle fonts not removed from css when removed in backend
-
Hi, long time user of Spectra theme and blocks and great fan. Thanks for them.
This problem has been in Spectra blocks/Spectra One theme since 2.7:Included fonts from Spectra Blocks are still called in the editor.css and inline style tag, even though they have been completely removed in the backend through the Spectra settings tool. The tool correctly removes the .woff files from the server, but since they’re still referenced, they create 401 errors.
NB: This is only when you’re logged in to the site, say as admin, and not when viewing the site as a non-logged in user.
Referenced in the frontend css file:
spectra-one/assets/css/minified/editor.min.css?ver=1.0.8and in the html code in the
<style id=’wp-webfonts-inline-css’> CODE </style> -tagReplication:
- Go to Spectra settings -> Theme fonts and load one font, with a couple of font weights or styles.
- Go to a page, insert header block and use the new font on the header. Save the page.
- Remove the font from the header so it uses the standard Theme font instead (I use Spectra 1, so Inter).
- Go to Spectra blocks settings -> Theme fonts and remove the recently created new fonts , so you only use those from the Theme.
- Clear the cache – has no effect but nevertheless.
- Go to frontend -> the fonts are still called in the css, but since they’re are removed on the server (because we deleted then in the above step 4), they crate a 401 server error.
Can you replicate this error? I can’t get the callback to 2 fonts I no longer use removed from the css-call.
All the best
Greg
- The topic ‘Gogle fonts not removed from css when removed in backend’ is closed to new replies.