How to change the font for the entire website #1420
-
|
I wanted to change the font for the entire website. I tried dong the following: <!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700;800;900&display=swap"
rel="stylesheet">Modify // ==============================
// Override Variables
// ==============================
// Override global font family
@import url('https: //fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700;800;900&display=swap');
$global-font-family:
Nunito,
system-ui,
-apple-system,
BlinkMacSystemFont,
PingFang SC,
Microsoft YaHei UI,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
Helvetica,
Arial,
sans-serif !default;However, this doesn't modify the font. I already have a custom homepage where I've explicitly added the font link in its head which is able to modify the font for the homepage. However, I wanted a uniform font across my blog. |
Beta Was this translation helpful? Give feedback.
Answered by
zhang-stephen
Mar 4, 2025
Replies: 1 comment 1 reply
-
|
Remove the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cs-mshah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove the
!defaultmark at the end of$global-font-family, it would be effective after page refreshed.