-
Notifications
You must be signed in to change notification settings - Fork 3
Call To Action Shortcode
Oliver Juhas edited this page Jun 22, 2017
·
3 revisions
Displays a "call to action" element: a text with optional caption with a button.
[wm_call_to_action caption="Optional caption here" button_text="Contact us!" button_url="https://www.google.com" button_size="l" button_icon="icon-class"]Call to action text here.[/wm_call_to_action]
Please note that you can omit parameters with empty values when writing the shortcode.
Parameter | Type | Value example | Description |
---|---|---|---|
button_class |
string | my-class |
Adds custom CSS class onto button. |
button_color |
predefined |
accent , error , info , success or warning
|
The values actually depend on the theme you are using. The theme might support some custom set of colors. Anyway, you can use whatever value here and style it later using some custom CSS. |
button_icon |
string | icon-class |
Use one of predefined icons classes here. For the complete list of icons (and their classes) please see Appearance » Icon Font in your WordPress dashboard (your theme has to support this feature). |
button_size |
predefined |
s (small), m (medium), l (large) or xl (extra large) |
Sets the button size. You can also set empty value (this is default, actually), which basically stands for m . |
button_text |
string | Contact us! |
A text label of the button. |
button_url |
string | https://www.google.com |
Any valid URL for the button link. Default is # . |
caption |
string | My caption here |
Sets the custom call to action caption, a heading. |
class |
string | my-class |
Adds a custom CSS class(es) onto shortcode wrapper. |
heading_tag |
predefined |
h2 , h3 , h4 , h5 or h6
|
Sets the caption HTML heading tag for headings cascade control (for better accessibility). |
Please, make sure your theme supports this shortcode, before using it.
Some themes may not be compatible with certain shortcodes as they may use different approach to displaying similar elements. In that case the shortcode is displays in its raw code format on your website front-end.
— Download the plugin at WordPress plugins repository or directly via your WordPress dashboard.
— Get a compatible theme at WebManDesign.eu.
— Please help us translate the plugin into your language. Thank you! :)