禁用输入字段上的文本联系表单 7 wordpress

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25539986/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 10:59:49  来源:igfitidea点击:

Disable text on input fields contact form 7 wordpress

wordpressinputcontact-form-7input-field

提问by Diegolops

I want to disable or erase the text of my input fields from my contact form.

我想从我的联系表单中禁用或删除我的输入字段的文本。

Specially on the fields that appears text like "Full name", "Email Address" and "Your message will be here"

特别是在出现“全名”、“电子邮件地址”和“您的消息将在此处”等文本的字段上

I am using Contact Form 7 of Wordpress and I configured spanish lenguage as default but it still in english this text.

我正在使用 Wordpress 的联系表格 7,我将西班牙语语言配置为默认值,但它仍然是英文文本。

Here is the link: http://crepali.com.mx/contacto/

这是链接:http: //crepali.com.mx/contacto/

How can I translate it or disable?

我该如何翻译或禁用它?

Thanks

谢谢

回答by Shuhad zaman

Use the word readonlyfor example

例如,使用单词readonly

[text text-859 readonly "1 Week Trial"] 

i tried this and it worked

我试过了,它奏效了

回答by Pradeep rajendiren

try this

尝试这个

[text domainname  readonly]

Its working perfectly

它的工作完美

回答by Aslam Khan

If you want to make a field read-only, set the readonly option in the form-tag like this:

如果要使字段只读,请在 form-tag 中设置 readonly 选项,如下所示:

  1. ****strong textTry this
  1. ****强文本试试这个

[text* your-name readonly class:required "Write your text here"]

[text* your-name readonly class:required "Write your text here"]

回答by Kushal Shah

Try this

尝试这个

[text text-346 placeholder "nombre completo"]

[text text-346 placeholder "nombre completo"]

回答by Sandeep Kumar

In wp-admin you have seen Contact Menu form here you create the contact form

在 wp-admin 中,您已经在此处看到了联系菜单表单,您可以创建联系表单

Full Name is the placholder which you are seeing.

全名是您所看到的占位符。

your code in the contact form 7 like following

您在联系表格 7 中的代码如下

[text text-346 placeholder "full name"]

Kindly remove the "placholder full name" text form the field

请从字段中删除“占位符全名”文本

 [text text-346]