I'd like to change the class from btn-default to btn-primary like says in here: http://getbootstrap.com/css/#buttons

<!-- Standard button -->
<button type="button" class="btn btn-default">Default</button>

<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary">Primary</button>

Copy /sites/all/themes/bootstrap/theme/bootstrap/bootstrap-search-form-wrapper.func.php



and edit that file at line 14:

 $output .= '<button type="submit" class="btn btn-default">';


 $output .= '<button type="submit" class="btn btn-primary">';

This might be helpful: https://drupal.org/node/225125

  • I did this but it didn't work in my case. I have currently a solution which is copying the css style and applying it to #form-id .btn and it works. But it is less bootstrap spirit. – Tritof Jun 17 '14 at 8:52
  • Ok. meant to suggest this too. drupal.org/node/171194 . – iain maitland Jun 17 '14 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.