Welcome to our Knowledge Base
Categories
< All Topics
Print

Reset button

WPComplete includes a shortcode that allows students to reset their lesson completion. This can be helpful for learners who want to review course material from the beginning or restart progress on specific lessons or courses.

To display a reset button, use the following shortcode: [wpc_reset]

Customizing the Reset Button

The reset button can be customized using optional parameters. These allow course creators to change the button label, add custom styling, limit the reset to a specific course, and customize the confirmation and feedback messages.

[wpc_reset text="Custom button text" class="custom-css-class" course="Specific Course" confirm="Custom confirm message" success_text="Custom success message" failure_text="Custom failure text"]

Available Parameters:

  • text – Custom label for the button
  • class – Add a CSS class for styling
  • course – Target a specific course (omit to reset all courses)
  • confirm – Confirmation message shown before reset
  • success_text – Message shown after a successful reset
  • failure_text – Message shown if the reset fails

Any combination of these parameters can be used to customize the behavior and appearance of the reset button.

CSS Customization

While WPComplete does not offer support for CSS customization, site owners can style the reset button and messages using the following CSS selectors:

.wpc-reset-message .success { }
.wpc-reset-message .failed { }
.wpc-reset-link { }

The default colours for the success and failure messages are:

.wpc-reset-message .success { color: #719430; }
.wpc-reset-message .failed { color: #940130; }

To change the appearance, add custom styles to the theme’s stylesheet or use the Custom CSS section in the WPComplete settings page.

Conclusion

The [wpc_reset] shortcode gives students the ability to restart their course progress with a customizable reset button. By adjusting the available parameters and applying custom styles, course creators can integrate this feature in a way that matches their site’s tone and design.

Table of Contents