Introducing Automatic Template Overrides
We’re in the middle of another big round of plugin updates and perhaps one of the most exciting addition to our plugins is support for template overrides. Basically, this feature allows you to take key HTML elements from our plugins, copy the templates into your child theme, make modifications to them, and not be worried about your customizations disappearing when you update the plugins.
Last week’s Uncanny LearnDash Toolkit Pro (3.1) and LearnDash Groups (3.0.4) and this week’s Uncanny LearnDash Toolkit (3.1) updates are the first to support this new behavior. Using the overrides is really easy; find something you want to override in the /src/templates folders of our plugins, copy that file to your child theme (into an /uncanny-toolkit/ folder for the Toolkit plugins, /uncanny-groups/ for the Groups plugin), and then apply your changes to the new file. If the file is in a subfolder of the /src/templates folder, replicate the same folder structure inside the override folder, but drop the /templates path (e.g. /src/templates/frontend-login/default-login.php would go in /your-child-theme/uncanny-toolkit/frontend-login/default-login.php).
Certainly this feature is intended primarily for developers, who can build some very powerful features using our plugins as a base. Perhaps you want to add a new field to our Enhanced Course Grid, like an instructor name, or maybe on the Import LearnDash Users page you want to add your own instructions and branding. Template overrides make things like this much easier.
And while we’re talking about Pro and Groups plugins anyway, here are some other recent updates to the plugins you may have missed…
Recent Uncanny LearnDash Toolkit Pro Updates
Improved Group Leader Interface: No more relying on third party plugins to redirect your Group Leaders! This module now supports login redirects for Group Leaders. If you use Pro with our Groups plugin, this is a great way to get your Group Leaders to land directly on the Group Management page.
Email Quiz Certificates: Tokens now available for including the user’s first and last name in the email sent to admins and/or Group Leaders. Use %First Name% to include the user’s first name and %Last Name% for last name. This makes organizing emails much easier.
Email Course Certificates: Pro 3.0.4 added a way to send certificates with a timed delay. Most users should not choose the “Use Cron to send certificate option”, but in some cases where a shortcode does not have course completion when the certificate is sent, choosing this option and then having the certificate sent 20 seconds after completion allows time for shortcodes in the certificate to render properly. If you find your certificate PDF files have some blank values, try turning this on.
Recent Uncanny LearnDash Group Updates
We’ve made a number of recent enhancements to our Groups plugin that will really help site owners:
Put the Key Redemption field anywhere in your Gravity Form registration form. This one is a huge improvement for several Groups users; the code entry field is no longer restricted to the bottom of the form. Instead, you can add the “Uncanny Code” field type anywhere on your form.
Include passwords in user uploads. CSV files can now include a specific password rather than the Groups plugin force a random password. This is a huge benefit on sites where students may not have an email address, as instead of requiring that an email be sent with their password, or a link to reset the password, nothing needs to be confirmed by email.
User verification in Gravity Forms is now supported, so you can have users confirm their email addresses before registration.
Your example of the template override is not how it works (in v3.1.4 of Uncanny Toolkit). The override location drops the ‘templates’ part of the path, so
overriding uncanny-learndash-toolkit/src/templates/frontend-login/default-login.php would go in your-child-theme/uncanny-toolkit/frontend-login/default-login.php (note that the ‘templates’ part of the path has been dropped).
Thanks for the heads up! The article has been corrected.