Platzhaltertext zu Login-Formularfeldern hinzufügen

Placeholder text is the text that appears in a field before the user inputs data. Usually this text gives an example of what the user would type into the field, or lets the user know what that field is supposed to contain.  e.g. For the Email field, you might put the word ‘Email’, or an example email address.

Wenn Sie den Feldern des Anmeldeformulars Platzhaltertext hinzufügen möchten, können Sie den folgenden Code in den Inhalt Ihrer Anmeldeseite einfügen:

<script>
jQuery(function() {
jQuery('#log').attr('placeholder', 'Username');
jQuery('#pwd').attr('placeholder', 'Password');
});
</script>

Hinweis: the default WordPress editor restricts the <script> tag. You’ll need to use the method of your choice to insert the above code into your content. Skripte und Stile ist ein Beispiel für ein Plugin eines Drittanbieters, mit dem Sie den oben genannten Code zu einer Seite oder einem Beitrag hinzufügen können.

War dieser Artikel hilfreich?

Verwandte Artikel

Sie können die gesuchte Antwort nicht finden?

Wenden Sie sich an unser Customer Success Team
Kontaktieren Sie uns!