MattDerrickAH Posted January 16 Share Posted January 16 (edited) Hi there, I am hoping someone may be able to help - I feel like I've tried everything but cannot work out how to format placeholder text in my contact form. I have injected some code into the page footer which is allowing me to add placeholder text into the form: <script> (function() { document.querySelector(".first-name input").setAttribute("placeholder", "First name"); document.querySelector(".last-name input").setAttribute("placeholder", "Last name"); document.querySelector(".email input").setAttribute("placeholder", "Email"); document.querySelector(".message input").setAttribute("placeholder", "Type your message here"); })() </script> However, I cannot seem to find a way to change the formatting of the placeholder text. I'm ideally looking to change it to: Font family: 'Circular-Book' [custom font] Font colour: #00282e If anyone has any ideas about how I do this, I will be forever grateful! Page URL: https://rectangle-wisteria-55e2.squarespace.com/contact Password: AstonHolmes23 Thank you very much in advance. Matt Edited January 16 by MattDerrickAH Link to comment
Solution tuanphan Posted January 18 Solution Share Posted January 18 Add to Design > Custom CSS input, textarea, input::placeholder, textarea::placeholder { color: #00282e !important; font-family: 'Circular-Book' !important; } MattDerrickAH 1 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
MattDerrickAH Posted January 19 Author Share Posted January 19 Thank you SO much Tuanphan! 🙏 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