Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to customize the login page with an input-prepend and an add-on (see attached), but I can't seem to get the following code to wrap directly around the input field because it's getting wrapped automatically by the control group/controls wrappers before processing my form alters.
<div class="input-prepend"><span class="add-on"><i class="icon-user icon-large"></i></span>
<input...>
</div>
Is there a way to alter the input field before the control group/controls wrappers fire?
Comment | File | Size | Author |
---|---|---|---|
user_login.png | 4.36 KB | kruser |
Comments
Comment #1
walidvb CreditAttribution: walidvb commentedFound this, in case anyone is still looking:
http://www.hbensalem.com/php/drupal-7-and-bootstrap-3-theming-the-login-...
Comment #2
markhalliwellThis was fixed in the 3.x branch. Dup of #2099113: Fix markup for ['#field_prefix'] / ['#field_suffix']