User Achievements
User Achievements
Lists the achievements the logged-in user has earned in LifterLMS as a grid of achievement badges, using LifterLMS's own achievement loop markup. Two Content controls set how many achievements to show and how many columns the grid uses; the badges themselves are styled by the LifterLMS stylesheet.
Usage
Student dashboard or profile template — Place the widget on a dashboard, profile or "My account" page built with Elementor so students see their earned badges next to their User Courses and User Certificates. If you would rather reproduce the whole LifterLMS student dashboard, including its Achievements tab, use the User Dashboard widget instead.
Recent highlights — Set Number of achievements to a small value (for example 3) and match Number of columns used when listing achievements to it for a single-row strip of the latest badges in a sidebar or card.
Members-only section — The widget renders nothing for logged-out visitors, so it can sit on a public page without exposing anything. To show a sign-in prompt in its place, pair it with a Login form hidden by a Conditional Logic rule on the Advanced tab — see Hide a Widget from Enrolled Students for the pattern.
How it works
The widget outputs LifterLMS's [lifterlms_my_achievements] shortcode for the current user, passing the two Content settings through as its count and columns attributes. Achievements are those LifterLMS has awarded to the user (on course or lesson completion, or manually from the admin) — see the LifterLMS documentation for how achievements are created and awarded. Each badge opens in a LifterLMS pop-up when clicked.
| Situation | Behaviour |
|---|---|
| Logged-out visitor | The widget renders nothing — no wrapper, no message. |
| Logged-in user with no achievements | A single paragraph: "You do not have any achievements yet. Enroll in a course to get started!" (the text of LifterLMS's lifterlms_no_achievements_text filter). |
| Logged-in user with achievements | An unordered list with the classes llms-achievements-loop listing-achievements loop-cols-N, one llms-achievement-loop-item per badge, laid out in the number of columns you chose. |
| More achievements than fit | Badges are paged, five rows per page (columns × 5, or Number of achievements if that is lower). LifterLMS pagination links appear below the grid when there is more than one page. |
| In the Elementor editor | The preview shows your own achievements as the logged-in editor, so a site owner with none sees the "no achievements" message. |
Settings
Content
| Setting | Description |
|---|---|
| Number of achievements | Maximum number of achievements to list per page. Leave empty (the default) to show all of them, paged five rows at a time. Minimum 1. |
| Number of columns used when listing achievements | How many badges sit side by side in the grid. Default 5; minimum 1. The value is written to the list as a loop-cols-N class, which LifterLMS's stylesheet turns into the column layout. If the field is cleared, LifterLMS falls back to its own default of 4 columns. |
Style
The widget registers no Style controls of its own. Badge size, spacing and typography come from LifterLMS's achievement loop styles; adjust them with the Advanced tab's Custom CSS section or your theme, targeting the llms-achievements-loop and llms-achievement-loop-item classes.
Advanced
The Advanced tab holds Elementor's own layout, motion, responsive and custom-CSS controls — see Elementor's documentation. Lifter Elements adds one section, Conditional Logic, which shows or hides this widget by the visitor's LifterLMS status — see the Conditional Logic reference.
Notes
- User Certificates is the companion widget: it lists the user's earned certificates using the LifterLMS dashboard's certificates section and offers only an all-or-recent choice, whereas this widget lists achievement badges with a count and column layout.
- Because output is the LifterLMS shortcode, any theme or plugin styling written for the LifterLMS student dashboard's Achievements tab applies here too, and the
lifterlms_no_achievements_textfilter changes the empty-state message. - Related: User Dashboard, User Courses, User Memberships.