The Button shortcode handles a generic button. Here is a live example:

The button shortcode, shown above, is defined by the following definition:

[g-button button_type="primary" button_label="Click me"][/g-button]

Shortcode parameters

The [g-button] shortcode has some optional parameters:

  • name - defines an unique component name.
  • button_label - defines the button label.
  • button_type - defines the button type and could be one of the following values: primary|success|info|warning|danger|link|default.
  • button_attributes - defines extra attributes you can add to your button markup. Attributes is a string of HTML key:value tokens, separated by commas. A valid attributes value is attributes=class:myclass, rel:my-rel".

Next Post Previous Post