diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme index 08e4240..d301f34 100644 --- a/core/themes/bartik/bartik.theme +++ b/core/themes/bartik/bartik.theme @@ -119,13 +119,17 @@ function bartik_theme_suggestions_form_alter(array &$suggestions, array $variabl } /** - * Implements hook_fork_alter() to add classes to the search form. + * Implements hook_form_alter() to add classes to the search form. */ function bartik_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { if($form_id == 'search_block_form') { $form['actions']['submit']['#attributes'] = new Attribute(); $form['actions']['submit']['#attributes']->addClass('search-form__submit'); } + if($form_id == 'search_form') { + $form['basic']['submit']['#attributes'] = new Attribute(); + $form['basic']['submit']['#attributes']->addClass('search-form__submit'); + } } /**