【问题标题】:Place holders in wordpresswordpress 中的占位符
【发布时间】:2015-05-15 22:28:59
【问题描述】:

我对 Wordpress Onetone 主题中的占位符有疑问。当我将占位符标签中的文本更改为我喜欢的文本时,它会起作用,直到我再次按下该字段,然后将文本恢复为旧文本。例如,我将“电子邮件”更改为“whatever”,保存它,转到网站,它在输入区域中显示“whatever”,当我用鼠标按下该区域然后在其他地方按下时,它会重置回“电子邮件”。我怎样才能使占位符中的文本成为永久性的?

<div class="contact-area">
          <form class="contact-form" method="post" action="">
           <input type="text" name="name" id="name" value="" placeholder="Name" size="22" tabindex="1" aria-required="true">
           <input type="text" name="email" id="email" value="" placeholder="Email" size="22" tabindex="2" aria-required="true"> 
           <textarea name="message" id="message" cols="39" rows="7" tabindex="4" placeholder="Message"></textarea>
           <p class="noticefailed"></p>
           <input type="hidden" name="sendto" id="sendto" value="tomas@bandymasvienas.esy.es">
           <input type="button" name="submit" id="submit" value="Post">
          </form>
         </div>

【问题讨论】:

    标签: wordpress placeholder


    【解决方案1】:

    我发现了一个问题。如果您想始终保持相同的文本,则需要找到具有所需功能的 .js 文件并在其中编辑文本,占位符将显示您想要的文本。

    【讨论】:

      猜你喜欢
      • 2014-08-10
      • 2014-05-21
      • 2013-09-13
      • 2017-10-12
      • 2014-12-03
      • 1970-01-01
      • 2016-08-30
      • 2013-06-17
      • 2011-12-21
      相关资源
      最近更新 更多