Yajur Posted July 29, 2023 Share Posted July 29, 2023 Hey, this is my website url: https://ferret-garlic-eme5.squarespace.com/config/ I'm not able to work with custom css for fonts. My code is @font-face { font-family: abigail-v2; src: url(https://ferret-garlic-eme5.squarespace.com/config/design/undefined); } h1 { font-family: 'abigail-v2'; font-weight: 700; font-size: 40px; letter-spacing: 0.1em; } @font-face { font-family: SimplonNormTrail-Light; src: url(https://static1.squarespace.com/static/64c3ac7fb698635d51ab6d7e/t/64c5075fe36c2241532ed5d0/1690634079363/SimplonNormTrial-Light.otf); }@font-face { font-family: SimplonNormTrail-Light; src: url(https://static1.squarespace.com/static/64c3ac7fb698635d51ab6d7e/t/64c5075fe36c2241532ed5d0/1690634079363/SimplonNormTrial-Light.otf); } @font-face { font-family: saol-text-regular-2; src: url(https://static1.squarespace.com/static/64c3ac7fb698635d51ab6d7e/t/64c50766703b8d0a938d194a/1690634087522/saol-text-regular-2.otf); } @font-face { font-family: simplonmonotrail-light; src: url(https://static1.squarespace.com/static/64c3ac7fb698635d51ab6d7e/t/64c507845a1ae954c81d61c0/1690634116759/simplonmono-light.ttf); } h2 { font-family: 'SimplonNormTrail-Light'; } h3 { font-family: 'saol-text-regular-2'; } h4 { font-family: 'simplonmonotrail-light'; } Please help me Link to comment
Solution tuanphan Posted July 29, 2023 Solution Share Posted July 29, 2023 The font url doesn't exist and when declare font family for h1, h2, p... you need to use !important h2 { font-family: 'SimplonNormTrail-Light' !important; } h3 { font-family: 'saol-text-regular-2' !important; } h4 { font-family: 'simplonmonotrail-light' !important; } Yajur 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
Yajur Posted July 30, 2023 Author Share Posted July 30, 2023 Thank you tuanphan! tuanphan 1 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