Skip to main content

Enroll

Enroll

Renders a LearnDash enrollment button for the current course.

BeaverDash - Modules - Buttons - Enroll

Usage

On a course template in Beaver Themer — Place this module on a course singular template so it appears automatically on every course page, showing or hiding based on each visitor's enrollment status. No conditional logic required; the button handles it.

Alongside pricing information — Pair with the Course Price module or the bdash_course_price field connection so learners see the price and the enrollment action together in the same layout section.

For closed courses — Configure the Message if the course is closed setting to show a custom message (e.g. "Contact us to enroll" with a link to your contact page) rather than leaving an empty space when a course is set to Closed in LearnDash.

How it works

The button's visibility is controlled automatically by LearnDash based on the current user's relationship with the course:

SituationButton behaviour
User is not enrolled and enrollment is requiredButton shows — clicking triggers the LearnDash enrollment or payment flow
User is already enrolledButton hides automatically
Course is free and open-accessButton hides (no enrollment action needed)
Course is set to "Closed" in LearnDashButton is replaced by the Message if the course is closed text

Settings

General

SettingDescription
TextCustom button label. Leave empty to use the default "Take this course" label.
IconOptional icon displayed on the button.
Icon PositionPlace the icon Before or After the button label.
Icon VisibilityShow the icon Always Visible or Fade In On Hover.
Message if the course is closedText shown in place of the button when the course is set to "Closed" in LearnDash settings.

Style

SettingDescription
TypographyFont family, size, weight, and line height for the button label.
Background ColorButton fill color; a separate hover color is also available.
Text ColorButton label color; a separate hover color is also available.
StyleButton shape: Flat, Gradient, or Transparent (Transparent reveals border and opacity controls).
WidthAuto (with alignment), Full Width, or Custom (fixed pixel width).
PaddingInternal padding in px.
Round CornersBorder radius in px.
TransitionEnable or disable a color transition on hover.