Skip to content

Instantly share code, notes, and snippets.

@isabellachen
Created March 21, 2021 14:26
Show Gist options
  • Save isabellachen/538fccafaa57d16d49daa4e4986302c3 to your computer and use it in GitHub Desktop.
Save isabellachen/538fccafaa57d16d49daa4e4986302c3 to your computer and use it in GitHub Desktop.
Customise/override LearnDash 3.0 templates

Customise/Override LearnDash template

If you want to override how LearnDash outputs dynamic content, you have to add a file of the same name into your theme or child theme. For example, if you want to change how the infobar content is displayed, you need to edit the infobar.php file. All that is needed is to place your php file in the correct folder.

If you’re overriding the file: /wp-content/plugins/sfwd-lms/themes/ld30/templates/modules/infobar.php then the file in the child theme will be: /wp-content/themes/xxx-child/learndash/ld30/modules/infobar.php

Note you do not need to put the modules folder under /templates

@LaurentSta
Copy link

Excellent !! Merci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment