1

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>

1 Answer 1

3

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

to

/sites/all/themes/my-bootstrap-subtheme/templates

and edit that file at line 14:

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

to:

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

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

2
  • 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, 2014 at 8:52
  • Ok. meant to suggest this too. drupal.org/node/171194 . Jun 17, 2014 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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