Enroll
Enroll
Renders a LearnDash enrollment button for the current course.
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:
| Situation | Button behaviour |
|---|---|
| User is not enrolled and enrollment is required | Button shows — clicking triggers the LearnDash enrollment or payment flow |
| User is already enrolled | Button hides automatically |
| Course is free and open-access | Button hides (no enrollment action needed) |
| Course is set to "Closed" in LearnDash | Button is replaced by the Message if the course is closed text |
Settings
General
| Setting | Description |
|---|---|
| Text | Custom button label. Leave empty to use the default "Take this course" label. |
| Icon | Optional icon displayed on the button. |
| Icon Position | Place the icon Before or After the button label. |
| Icon Visibility | Show the icon Always Visible or Fade In On Hover. |
| Message if the course is closed | Text shown in place of the button when the course is set to "Closed" in LearnDash settings. |
Style
| Setting | Description |
|---|---|
| Typography | Font family, size, weight, and line height for the button label. |
| Background Color | Button fill color; a separate hover color is also available. |
| Text Color | Button label color; a separate hover color is also available. |
| Style | Button shape: Flat, Gradient, or Transparent (Transparent reveals border and opacity controls). |
| Width | Auto (with alignment), Full Width, or Custom (fixed pixel width). |
| Padding | Internal padding in px. |
| Round Corners | Border radius in px. |
| Transition | Enable or disable a color transition on hover. |