) { $form[‘keys'][‘#attributes'][‘placeholder'] = t(‘Custom wording'); } } Also this one: function mytheme_form_search_block_form_alter(&$form, $form_state) { $form[‘keys'][‘#attributes'][‘placeholder'] = t(‘Custom wording'); } 