- Issue created by @robcarr
- Status changed to Closed: works as designed
over 1 year ago 12:28pm 23 February 2023 - 🇬🇧United Kingdom robcarr Perthshire, Scotland
Sorry, my bad. Following override works as designed:
function THEME_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'cludo_search_block_search_form') { //Remove text from Search button and add class $form['submit']['#value'] = ""; $form['submit']['#attributes']['class'][] = 'search-button'; } }