ahstudiolondon Posted January 16, 2023 Share Posted January 16, 2023 (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, 2023 by MattDerrickAH Link to comment
Solution tuanphan Posted January 18, 2023 Solution Share Posted January 18, 2023 Add to Design > Custom CSS input, textarea, input::placeholder, textarea::placeholder { color: #00282e !important; font-family: 'Circular-Book' !important; } ahstudiolondon 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
ahstudiolondon Posted January 19, 2023 Author Share Posted January 19, 2023 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