Skip to main content

Theme Shortcodes

Theme Shortcodes

Requires LearnDash 3.0+

All shortcodes in this section are only available when LearnDash 3.0 or later is installed and active.

These shortcodes return the color values set in LearnDash's theme settings. Use them in CSS or inline style attributes to keep your Beaver Builder layouts consistent with your LearnDash color scheme.

Primary Color

Returns the primary color from LearnDash's theme settings as a hex value (without the #).

[bdash_theme_color_primary]

Example: style="color: #[bdash_theme_color_primary]"

Secondary Color

Returns the secondary color from LearnDash's theme settings.

[bdash_theme_color_secondary]

Tertiary Color

Returns the tertiary color from LearnDash's theme settings.

[bdash_theme_color_tertiary]