Buttons
Use [button] or [hovercraft_button] to display a styled link in WordPress content. Both shortcodes produce a normal link, not a form button or JavaScript action.
Example
[button url="/contact/" style="secondary"]Contact Us[/button]
Replace the destination and button text to suit your page. Omit style for the primary button appearance.
Shortcode attributes
| Attribute | Use |
|---|---|
url | Destination URL; defaults to #. |
style | primary (default) or secondary; other values use the primary appearance. |
class | One optional custom CSS class. |
target | _self (default), _blank (new tab), _parent, or _top. Unsupported values fall back to _self. |
rel | Optional link relationship; with target="_blank", an empty value becomes noopener noreferrer. |
With target="_blank", HoverCraft adds noopener noreferrer only when rel is empty. If you set your own rel, include those values yourself. Supply a real url instead of relying on the # fallback. For styling, see CSS Customization.
To add theme-positioned buttons to the header, homepage hero, sidebar, or footer instead, see Calls to Action. Those buttons use dedicated WordPress menu locations rather than shortcodes.