Add classes to login form fields D 7 I ma trying to add foundation classes to my #user-register-form fields in D7

&lt;div class="form-item form-type-textfield form-item-name"&gt;
  &lt;label for="edit-name"&gt;Username &lt;span class="form-required" title="This field is required."&gt;*&lt;/span&gt;&lt;/label&gt;
 &lt;input class="username form-text required" type="text" id="edit-name" name="name" value="" size="60" maxlength="60"&gt;
&lt;div class="description"&gt;Spaces are allowed; punctuation is not allowed except for periods, hyphens, apostrophes, and underscores.&lt;/div&gt;
&lt;/div&gt;


I have tried using template overrides like I have with my other custom fields

field--field_homepage_body.tpl.php

But with no luck any help would be appreciated.
You can do this by altering the form in your custom module hook_form_alter(){} or 
in template.php of your active theme.

Just add the classes in the attributes array().

Or you can create a user-login.tpl.php file following this link, Its already answered here with this code. 

&lt;?php
    function operationscheck_theme_theme() {
    $items = array();
    $items['user_login'] = array(
   'render element' =&gt; 'form',
   'path' =&gt; drupal_get_path('theme', 'operationscheck_theme') . '/templates',
   'template' =&gt; 'user-login',

    'preprocess functions' =&gt; array(
   'operationscheck_theme_preprocess_user_login'
   ),
);
    $items['user_pass'] = array(
   'render element' =&gt; 'form',
   'path' =&gt; drupal_get_path('theme', 'operationscheck_theme') . '/templates',
   'template' =&gt; 'user-pass',
   'preprocess functions' =&gt; array(
   'operationscheck_theme_preprocess_user_pass'
  ),
);
 $items['user_register_form'] = array(
'render element' =&gt; 'form',
'path' =&gt; drupal_get_path('theme', 'operationscheck_theme') . '/templates',
'template' =&gt; 'user-register-form',
'preprocess functions' =&gt; array(
'operationscheck_theme_preprocess_user_register_form'
 ),
);

return $items;
}
?&gt;

&lt;?php
   function operationscheck_theme_preprocess_user_login(&amp;$vars) {
      $vars['intro_text'] = t('This is my awesome login form');
    }
   function operationscheck_theme_preprocess_user_login(&amp;$vars) {
     $vars['intro_text'] = t('This is my awesome pass form');
   }

function operationscheck_theme_preprocess_user_register_form(&amp;$vars) {
    $vars['intro_text'] = t('This is my super awesome reg form');
   }

 function operationscheck_theme_theme(&amp;$existing, $type, $theme, $path) {
  $hooks = operationscheck_theme_theme($existing, $type, $theme, $path)

  $hooks['user_login_block'] = array(
 'template' =&gt; 'user-login',
 'arguments' =&gt; array('form' =&gt; NULL)
 );

// @TODO: Needs detailed comments. Patches welcome!
return $hooks;

}

function operationscheck_theme_preprocess_user_login_block(&amp;$variables) {
  $variables['intro_text'] = t('This is my awesome login formX');
  $variables['rendered'] = drupal_render($variables['form']);
}
 ?&gt;


Please check if it is the code snippet you were looking for.