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

Change form field text from English to French

Question

Site URL: http://selftalklove.com

I'm working on transitioning a website in English only to a bilingual site with French. I want the text in my newsletter sign up form for 'first name', 'last name' and 'email address' to display in French, rather than English. Can anyone share a solution for this?

Thank you!

Screen Shot 2020-03-16 at 9.24.22 AM.png

Share this post


Link to post

9 answers to this question

Recommended Posts

  • 1
On 8/10/2020 at 8:27 PM, andrzepa said:

@tuanphan just in case you've missed this post. Your divine intervention is required:)

Add to Page Settings > Advanced > Header

<style>
/* First name */
.field.first-name span.caption-text {
    visibility: hidden;
}
.field.first-name span.caption-text:before {
    visibility: visible;
    content: "New first";
}
/* last name */
.field.last-name span.caption-text {
    visibility: hidden;
}
.field.last-name span.caption-text:before {
    visibility: visible;
    content: "new last name";
}
</style>

 


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 (build 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

Hi @lucyalice   You can do this , it would be little tricky  you have to use Javascript code you just have to copy and paste the code in the same page as the newsletter it.

You can simply do it by adding a new Code Block (click on + when you are editing the page ans serach for code ) and paste the following code in it.

<script
  src="https://code.jquery.com/jquery-1.12.4.min.js"
  integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
  crossorigin="anonymous"></script>

<script>
$('.first-name>input').attr('placeholder', 'FIRST NAME TEXT'); 
$('.last-name>input').attr('placeholder', 'LAST NAME TEXT'); 
$('.email>input').attr('placeholder', 'ENTER YOUR EMAIL TEXT');

</script> 

Change the First Name Text , Last Name Text , Enter your Email Text with the desired text you want  🙂

Hope it helps 🙂

Share this post


Link to post
  • 0

Hey @humxahafeex

Will I be able to use this one on my form fields too? 

Got this one where I want to change "First Name" and "Last Name" to Danish.

Not sure how I would fine the src code?

Thanks in advance,

Sara 

 

 

image.png

Share this post


Link to post
  • 0
4 hours ago, saraschelde said:

Hey @humxahafeex

Will I be able to use this one on my form fields too? 

Got this one where I want to change "First Name" and "Last Name" to Danish.

Not sure how I would fine the src code?

Thanks in advance,

Sara 

 

Can you share link to page in screenshot? We can help easier.


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 (build 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
17 hours ago, andrzepa said:

Thank you @tuanphan, I need figure out whether upgrading my plan to business, to edit site header, is worth the money in my case.

br

Pawel

If you use Personal Plan > Edit Page > Add Code Block > Paste above code


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 (build 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

Create an account or sign in to comment

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


×
×
  • Create New...