# Info
The Info field comes in several varieties to display information as normal, info warning and success formats. Choose between the WordPress 3.8 styles, or the non-notice styles.
Table of Contents
# Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| type | string | info | Value identifying the field type. |
| style | string | normal | Sets the mode of the info box. Accepts: normal info warning success critical custom |
| notice | bool | true | Set the styling to the non-notice styles, instead of the default WordPress 3.8 notice styles. |
| color | string | Color that becomes the left border if style is set to custom. Will not work with a non-notice styled field. | |
| icon | string | Name of an Elusive Icon font to use in the info box. | |
| indent | bool | false | If set, left field indent will be applied. |
Tip
When using the Info field with required, the field cannot be hidden by default. Itβs best only to use the required argument with this
field when the fold is shown by default.
# Build Config
Build a Custom Configuration β
Changes you make to this form will be reflected in the generated code.
Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
'type' => 'info'
) );# Example Config
# Normal Style
Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
'id' => 'info_normal',
'type' => 'info',
'desc' => esc_html__('This is the info field, if you want to break sections up.', 'your-textdomain-here')
) );
# Warning Style
Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
'id' => 'info_warning',
'type' => 'info',
'title' => esc_html__('Danger, Will Robinson!', 'your-textdomain-here'),
'style' => 'warning',
'desc' => esc_html__('This is an info field with the warning style applied and a header.', 'your-textdomain-here')
) );
# Success Style
Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
'id' => 'info_success',
'type' => 'info',
'style' => 'success',
'title' => esc_html__('Success!', 'your-textdomain-here'),
'icon' => 'el-icon-info-sign',
'desc' => esc_html__( 'This is an info field with the success style applied, a header and an icon.', 'your-textdomain-here')
) );
# Critical Style
Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
'id' => 'info_critical',
'type' => 'info',
'style' => 'critical',
'icon' => 'el-icon-info-sign',
'title' => esc_html__('This is a title.', 'your-textdomain-here'),
'desc' => esc_html__('This is an info field with the critical style applied, a header and an icon.', 'your-textdomain-here')
) );
β Image Select Link Color β