HBennett Posted July 12, 2023 Share Posted July 12, 2023 Hello! I have a couple of questions - Firstly - I've been given two font packs to use for a new site I am building. Both fonts have multiple files (regular, bold, italics, bold italics etc) - do I have to upload them all as separate otf files? (see attached images)I am somewhat familiar with CSS to upload a custom font (and assign to h1, h2 etc) but never done it for multiple fonts across 2 'families' before so would really appreciate your guidance 🙂 My second question is - how tricky is it to use two fonts in H1? My client has seen this elsewhere and would like to try it but I'm not sure where to start! Thanks in advance for your help! H 🙂 Link to comment
Solution tuanphan Posted July 13, 2023 Solution Share Posted July 13, 2023 #1. Yes, you need to upload all and the code will be like this @font-face { font-family: 'Switzer Bold'; src: url(enter url to bold file); } @font-face { font-family: 'Switzer Regular'; src: url(enter url to regular file); } @font-face { font-family: 'Switzer Italic'; src: url(enter url to italic file); } #2. You can target BLOCK ID, some thing like this #block-id1 h1 { font-family: 'Switzer Bold'; } #block-id2 h1 { font-family: 'Switzer Italic'; } Use this tool to find id: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff HBennett 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
HBennett Posted July 27, 2023 Author Share Posted July 27, 2023 thank you for your help! 🙂 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