Jump to content

Change language on newsletter form field

Recommended Posts

Add to Page Settings > Advanced > Header

<script>
$(document).ready(function() {
	$('.first-name input').attr('placeholder','first new text');
  $('.email input').attr('placeholder','new email address');
});
</script>

If it doesn't work, try this

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.first-name input').attr('placeholder','first new text');
  $('.email input').attr('placeholder','new email address');
});
</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
  • 3 weeks later...
On 10/30/2020 at 9:38 PM, ovellemark said:

When it is a blog post - does this work? I can't figure it out on my site.
Want to change placeholder text "Email address" to swedish.

Site: https://www.ellemark.me/blogg/gotland-i-bilder

Add this to Code Injection Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.first-name input').attr('placeholder','first new text');
  $('.email input').attr('placeholder','new email address');
});
</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
8 minutes ago, ovellemark said:

That is awesome, thank you!

Anyway I could make it NOT effecting this page? And change the labels Email and message into Swedish?
https://www.ellemark.me/mer-om-mig

Add to Page Settings > Advanced > Header if you want to apply on that page only

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
24 minutes ago, ovellemark said:

Sure, but there is no option for that in the blog post right?

Add this new code to Blog Page Header

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.view-item .first-name input').attr('placeholder','first new text');
  $('.view-item .email input').attr('placeholder','new email address');
});
</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
12 minutes ago, tuanphan said:

Add this new code to Blog Page Header


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.view-item .first-name input').attr('placeholder','first new text');
  $('.view-item .email input').attr('placeholder','new email address');
});
</script>

 

Worked like a charm, thank you! Anyway to change form labels Email and Message here:
https://www.ellemark.me/mer-om-mig

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.