- This topic has 1 reply, 2 voices, and was last updated 5 years ago by
Elvin.
-
AuthorPosts
-
March 22, 2021 at 12:11 pm #1705560
Heather
Hi, I noticed that the customizer was responsible for adding all the font families to my website after I changed the font to “open sans”. So then I realized there were over 90! different fonts loading on each page even though I wasn’t using them.
So I went back in and removed a lot of the ‘font weights’ that were added and was left with just a few I do need and use. However, I can’t see where in customizer to remove these language supported versions that have embedded themselves in the code. I’m still left with this and it says maybe cyrillic-ext is responsible for it?? I don’t know what that is or where its coming from.
Do you know how i can remove these unneeded language supported versions?
<style id="generate-fonts-css" media="all">/* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(/fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOX-hpKKSTj5PW.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(/fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOVuhpKKSTj5PW.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(/fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXuhpKKSTj5PW.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(/fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUehpKKSTj5PW.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(/fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXehpKKSTj5PW.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(/fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(/fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } </style>March 22, 2021 at 8:00 pm #1705875Elvin
StaffCustomer SupportHi there,
Google font importation stylesheets are usually automatically generated by Google.
For example, if you attempt to get a stylesheet for a specific font like this one, – https://fonts.google.com/specimen/Open+Sans?preview.text_type=custom – you’ll notice that if you open the https://fonts.googleapis.com/css2?family=Open+Sans&display=swap stylesheet, you’ll see that it’s automatically added.
We generally don’t have to worry about this as the site won’t load the extra imported fonts if there’s no need for it.
But if you really must remove them, you may have to remove the google font request totally from the customizer and write the font import CSS manually, excluding the font language support you don’t want to be included.
You should hook the new stylesheet you’ll be writing on
wp_head. -
AuthorPosts
- You must be logged in to reply to this topic.