CDAquestion Posted December 14, 2021 Share Posted December 14, 2021 Site URL: https://www.cdamovement.org Looking for CSS customization to change the placeholder text in the newsletter form on the homepage to change from "First Name / Last Name / Email Address" to "Name / CDSBC Number / Email." Much appreciate any help! Link to comment
tuanphan Posted December 17, 2021 Share Posted December 17, 2021 On 12/14/2021 at 8:16 AM, CDAquestion said: Site URL: https://www.cdamovement.org Looking for CSS customization to change the placeholder text in the newsletter form on the homepage to change from "First Name / Last Name / Email Address" to "Name / CDSBC Number / Email." Much appreciate any help! Add to Settings > Advanced > Code Injection > Footer <script> (function() { document.querySelector(".first-name input").setAttribute("placeholder", "Name"); document.querySelector(".last-name input").setAttribute("placeholder", "CDSBC Number"); document.querySelector(".email input").setAttribute("placeholder", "Email"); })() </script> annie_mwm 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
mbockmaster Posted October 11, 2023 Share Posted October 11, 2023 Hi @tuanphan! I'm attempting to use this same code on my form, but I suspect that with the form updates, something has changed as it's no longer working. Do you know what the issue could be? https://fife-sunflower-68mk.squarespace.com/appointment-enquiry pw: elipsis Link to comment
paul2009 Posted October 11, 2023 Share Posted October 11, 2023 28 minutes ago, mbockmaster said: I'm attempting to use this same code on my form, but I suspect that with the form updates, something has changed as it's no longer working. Do you know what the issue could be? The earlier posts in this thread were posted before Squarespace changed Form Blocks in 2023. They are now built using React. See earlier threads for more background. Did this help? Please give feedback by clicking an icon below ⬇️ About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. 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