Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Modern_B

Newsletter block placeholder text

Question

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

Share this post


Link to post

9 answers to this question

Recommended Posts

  • 0

You can use jQuery to change email address text. It needs Business Plan. Which plan do you use?


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
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>

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
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?

Share this post


Link to post
  • 0

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>

Share this post


Link to post
  • 0
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.

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...