uhohitsheidiho Posted February 15 Share Posted February 15 Hello, I've reviewed several forum posts discussing the problem of customizing the "Submit" button font within a form using CSS. Despite attempting various CSS codes recommended, none have proven effective. I require the custom font for both a regular form and a contact form. Although the following code appears to be commonly used, it does not result in any noticeable changes: @font-face { font-family: Cunia; src: url(https://static1.squarespace.com/static/65a30bf07c8164487c03a9a8/t/65a32a7648ce18428d1ff916/1705192054542/Cunia.ttf); } .sqs-block-button-element { font-family: Cunia!important; } Am I missing something? (I need the font that's shown in the "View Our Sample Menu" button to match the "Submit" button below. Link to comment
Ziggy Posted February 16 Share Posted February 16 Can you share your website URL? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
uhohitsheidiho Posted February 17 Author Share Posted February 17 Hi @Ziggy, Thanks for getting back to me. Here is the website link: https://www.uncofranks.com/catering Link to comment
tuanphan Posted February 20 Share Posted February 20 Use this CSS code div#block-yui_3_17_2_1_1705886287148_31479 a { font-family: 'Varela' !important; } Ziggy 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
uhohitsheidiho Posted February 20 Author Share Posted February 20 Hi @tuanphan, Thanks so much for getting back to me and sending this. However, I am wanting to do the opposite. I am wanting the font in the "Submit" button in the form itself to be changed to "Cunia" font and not "Varela", essentially to match the font in the button that says "View Our Sample Menu". I tried using your code but the block id # isn't even showing on the Submit button in the form for some reason. Any suggestions? Link to comment
Solution inside_the_square Posted February 20 Solution Share Posted February 20 Hey @uhohitsheidiho - this is a great question! The block id is for the whole form, so you'll need to add the selector for the button inside that block. This code will change that font for ya: .form-wrapper .sqs-button-element--primary { font-family: Cunia!important } Hope that helps and best of luck with your project! ☺️ P.S. If you have more than one form on your site, you don't need to use the block id! If you use the code name ".form-wrapper .sqs-button-element--primary" all of your contact forms will get the same font family change. tuanphan 1 🤓 Creator of InsideTheSquare.co ✨ SQUARESPACE CIRCLE LEADER✨ SQUARESPACE EXPERT ✨ SQUARESPACE EMPLOYEE EDUCATOR ✨ CERTIFIED CUSTOM CODE EXPERT ✨ 🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap 🙋♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn ⭐️ Ready to go pro? Get my custom code collection: insidethesquare.co/css Link to comment
uhohitsheidiho Posted February 20 Author Share Posted February 20 Hi @inside_the_square, Thank you so much for your response! That did the trick. Btw, huge fan of your youtube tutorials. All of your videos helped me work through my first project in squarespace 🙂 Thank youuuu! 🙏 -Heidi tuanphan and inside_the_square 1 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