1. Home
  2. Docs
  3. General
  4. Templates Overriding from the theme

Templates Overriding from the theme

Dozent LMS template files contain the markup and template structure for frontend and HTML emails of your eLearning website.

When you open these files, you will notice they all contain hooks that allow you to add/move content without needing to edit template files themselves. This method protects against upgrade issues, as the template files can be left completely untouched.

Template files can be found within the /dozent/templates/ directory:

How to Edit Files

Edit files in an upgrade-safe way using overrides. Create a directory within your theme named /dozent and copy the template keeping the same file structure but removing the /templates/ subdirectory.

Example: To override the single course view (course details page), copy: wp-content/plugins/dozent/templates/single-course.php to wp-content/themes/yourtheme/dozent/single-course.php

The copied file will now override the Dozent LMS default template file. It will load from your theme with the changes you made and completely safe from the update.

Warning: Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.

Was this article helpful to you? Yes No

How can we help?