-
Notifications
You must be signed in to change notification settings - Fork 3
Message Shortcode
Oliver Juhas edited this page Jun 22, 2017
·
2 revisions
Displays a notification message.
[wm_message title="Optional message title" color="warning" size="l" icon="icon-class"]
Message text here.
[/wm_message]
Please note that you can omit parameters with empty values when writing the shortcode.
Parameter | Type | Value example | Description |
---|---|---|---|
class |
string | my-class |
Adds a custom CSS class(es) onto shortcode wrapper. |
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. |
heading_tag |
predefined |
h2 , h3 , h4 , h5 or h6
|
Sets the caption HTML heading tag for headings cascade control (for better accessibility). |
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). |
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 . |
title |
string | Title text |
Optional message title text. |
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! :)