thereal_ay_ay_ron Posted November 5 Share Posted November 5 I'm looking to see how I can change the font specifically on form on the contact page: I have some familiarity with CSS, but was wondering if this would be correct: @font-family: 'font name'; src: url(insert font url) * Contact Page - Contact Form */ div#block-d085d466cfc1d117861b label * { font-family: 'font-name'; } Link to comment
tuanphan Posted November 7 Share Posted November 7 Use this code @font-face { font-family: 'font-name'; src: url(upload your font file to squarespace and insert font url here); /* Contact Page - Contact Form */ div.form-block * { font-family: 'font-name' !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
thereal_ay_ay_ron Posted November 9 Author Share Posted November 9 Hey, it's not working: Only one of the custom fonts is working (Gilroy-Meduim). The second font (TR-909) was working initially, but is no longer working. I have tried to reupload the font. Maybe it has to do with my other CSS? I have uploaded your suggestion. Any assistance would be appreciated @font-face { font-family: 'Gilroy-Medium'; src: url(https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea1136a786901d3a4c0/1699061409261/Gilroy-Medium.ttf) format('truetype'); } @font-face { font-family: 'TR-909'; src: url(https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea35a2091267abcc8e4/1699061411786/TR-909.ttf) format('truetype'); } h1, h2, h3, h4, h5, p { font-family: 'Gilroy-Medium'; } /* Contact Page - Contact Form */ div.form-block * { font-family: 'font-name' !important; } .sqs-block-button-container, input.button.sqs-system-button.sqs-editable-button { font-family: 'TR-909' !important; } Link to comment
melody495 Posted November 9 Share Posted November 9 20 minutes ago, thereal_ay_ay_ron said: Hey, it's not working: Hi, missing single quote around the url. Try replacing with the below @font-face { font-family: 'Gilroy-Medium'; src: url('https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea1136a786901d3a4c0/1699061409261/Gilroy-Medium.ttf') format('truetype'); } @font-face { font-family: 'TR-909'; src: url('https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea35a2091267abcc8e4/1699061411786/TR-909.ttf') format('truetype'); } Not sure what font you want to use, but need to replace 'font-name' what with you want /* Contact Page - Contact Form */ div.form-block * { font-family: 'font-name' !important; } Let me know how it goes -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 🙋♀️Techy SquareSpace Developer for all your customisation needs #CSS #html #javascript ✉️ Email me 💻Soft launch https://www.melodylee.tech/ A software developer in an artist body that knows how marketing works. UK based, work globally #neverstoplearning ☕ I like coffee 😊 Link to comment
thereal_ay_ay_ron Posted November 10 Author Share Posted November 10 (edited) The missing quotes helped! Thanks for your assistance. The thing is the are still not showing the desired fonts: .sqs-block-button-container, input.button.sqs-system-button.sqs-editable-button { font-family: 'TR-909' !important; } SO I CHANGE IT TO THIS: .sqs-block-button .sqs-block-button-element--medium{ font-family: 'TR-909' !important; } ^^^ NOW the font is showing up on all buttons throughout the website. This code changed the entire contact form to one font. Goal is to have the form content to one font ('Gilroy-Medium') and the button to be another font ('TR-909'): /* Contact Page - Contact Form */ div.form-block * { font-family: 'TR-909' !important; } Edited November 10 by thereal_ay_ay_ron 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