Jump to content

Change placeholder text for newsletter form

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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>

image.thumb.png.3ef5220ea6fd9439d1402b4ab98533eb.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.