To add buttons to your page/post, you must be in the 'Text' editor view.
Compatible Tags
You can make buttons out of the following HTML tags:
Tag | Sample Code |
---|---|
a |
|
button |
|
input (type: button) |
|
input (type: submit) |
|
Button Classes
You may use the following btn btn-*
classes to produce buttons of different colors:
Class | Sample Code | Output |
---|---|---|
btn-default |
|
|
btn-primary |
|
|
btn-success |
|
|
btn-info |
|
|
btn-warning |
|
|
btn-danger |
|
|
btn-link |
|
Button Sizes
You may use the following btn btn-*
classes to produce buttons of different sizes:
Class | Sample Code | Output |
---|---|---|
btn-lg |
|
|
N/A (default) |
|
|
btn-sm |
|
|
btn-xs |
|
Block Buttons
You may also create buttons that fill the entire width of the parent div by adding a btn-block
class. For example: