Jump to content

Change language on newsletter form field

Recommended Posts

  • Replies 8
  • Views 1.4k
  • Created
  • Last Reply

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.