devonkong Posted June 15, 2021 Share Posted June 15, 2021 (edited) Site URL: https://devonkong.squarespace.com/ Hi all, this is my first time posting here but hopefully my formatting is acceptable. I've imported a custom font in the CSS panel using the code below: h1, h2, h3, h4, p, div, span, label, button, input { font-family: Inter !important; } @import url('https://rsms.me/inter/inter.css'); html { font-family: 'Inter', sans-serif; } @supports (font-variation-settings: normal) { html { font-family: 'Inter var', sans-serif; } } h1, h2, h3, h4, p, div, span, label, input { font-family: Inter !important; } It appears to have worked for everything except buttons. I've tried adding button to the code snippet (...span, label, button, input...) but no luck. I'm pretty sure label refers to the button class anyway. Any ideas? I couldn't find a workable solution in the forums. The password is Thanks! and you can find buttons on the Resources page. Thanks in advance! Edited June 16, 2021 by devonkong Clearer title Link to comment
Solution tuanphan Posted June 16, 2021 Solution Share Posted June 16, 2021 Hi. Button blocks need this code .button-block a { font-family: Inter !important; } devonkong 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
devonkong Posted June 17, 2021 Author Share Posted June 17, 2021 On 6/16/2021 at 6:54 PM, tuanphan said: Hi. Button blocks need this code .button-block a { font-family: Inter !important; } Thanks very much, that worked perfectly! Link to comment
Charlie1 Posted April 22, 2022 Share Posted April 22, 2022 @tuanphan Hello! Can you help me with a variable font issue in Squarespace? For some reason it's defaulting to slant: -100 The site is: https://www.projectforma.io/ Password: forma Link to comment
tuanphan Posted April 24, 2022 Share Posted April 24, 2022 On 4/22/2022 at 11:37 PM, Charlie1 said: @tuanphan Hello! Can you help me with a variable font issue in Squarespace? For some reason it's defaulting to slant: -100 The site is: https://www.projectforma.io/ Password: forma It looks like your Custom CSS box has a syntax error. Can you send all current code here? We can take a look Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Charlie1 Posted April 25, 2022 Share Posted April 25, 2022 @tuanphan Can I send you admin access? Seems like Squarespace doesn't work with variable fonts? Link to comment
tuanphan Posted April 27, 2022 Share Posted April 27, 2022 On 4/25/2022 at 3:32 PM, Charlie1 said: @tuanphan Can I send you admin access? Seems like Squarespace doesn't work with variable fonts? You can send all current code in Custom CSS, we can check easier. If you can't share public, you can message me Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment