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 ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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