Jump to content

Newsletter block placeholder text

Recommended Posts

Site URL: https://jellyfish-kumquat-hdzl.squarespace.com/

Hello, I'd like to edit the placeholder text in my newsletter block email field to read "Email" instead of "Email Address". I've been able to edit the styling of this text but have had no luck changing the words themselves. There doesn't appear to be an option built into the newsletter block editor to change this like you can for the 'Submit' button.

Any help would be greatly appreciated 🙂

URL: https://jellyfish-kumquat-hdzl.squarespace.com/
Password: TEMPB1803

Link to comment
On 4/30/2020 at 10:34 AM, Modern_B said:

Currently on trial version, but will move to business plan in a couple of days for launch 🙂

Add to Home > Settings > Advanced > code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$("div#block-e0d1501cb525ac50b3a0 .newsletter-block .newsletter-form-field-element").attr('placeholder','Email');
});
</script>

 

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
On 5/3/2020 at 2:18 AM, tuanphan said:

Add to Home > Settings > Advanced > code Injection > Footer


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$("div#block-e0d1501cb525ac50b3a0 .newsletter-block .newsletter-form-field-element").attr('placeholder','Email');
});
</script>

 

Hmm this doesn't seem to work for me. I double checked the block ID, any other ideas I could try?

Link to comment
  • 1 month later...
  • 1 month later...
  • 3 weeks later...
On 5/7/2020 at 6:03 AM, Modern_B said:

Got it to work using this code in the end, thanks for all your help.

<script>
  if (document.querySelector("#block-e0d1501cb525ac50b3a0")) {
    document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='Email'; 
  }
</script>


🙂

 

Edited by Ruth
I worked it out.
Link to comment
  • 1 month later...
2 hours ago, Nodus said:

Hello i have the same problem but none of the above codes work for me... Is there any CSS code that does the same thing?

Can you share link to page where you use newsletter? We can check easier.

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
  • 2 months later...
14 hours ago, Hecho said:

Hi i would also like to do this but the code isn't working for me

Can you share link to page where you use newsletter? We can help easier

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
  • 11 months later...
On 11/19/2021 at 9:09 PM, CalvinEK said:

I tried the suggestions in this post on https://www.calvin.no/, but they didn't work on my site. Any idea how I can change the placeholder text to something else ("E-post").

Add to Code Injection > Footer

<script>
  if (document.querySelector("div#block-7a0e9e4add2a3b74e014")) {
    document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='E-post'; 
  }
</script>

 

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
On 11/21/2021 at 3:31 AM, tuanphan said:

Add to Code Injection > Footer

<script>
  if (document.querySelector("div#block-7a0e9e4add2a3b74e014")) {
    document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='E-post'; 
  }
</script>

 

This worked wonderfully. Thank you!

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.