How to Customize a LearnDash Template in your Child Theme

NOTE: This is an advanced post aimed at developers.

If you were struggling to figure out how to customize your LearnDash templates using your child theme, well, good luck!

Just Kidding!

It can be a pain to figure out how to customize your LearnDash templates with your existing Child Theme, we know this because we recently ran into this. Unfortunately, there are no real guides or documentation on how to customize your LearnDash templates, so we had to figure this one out, and thought we’d share.

Just follow along below and we’ll show you.

Steps to Customize a LearnDash Template

It is important to note that the steps might change depending on the LearnDash Theme you are using – but in most cases, all you’d need to do to customize your LearnDash theme is to change the name from ld30 to the name of whatever LearnDash Theme you are using.

Add LearnDash Folder

You’ll need to add a learndash folder to your Child Theme.

Add the Name

Next, you need to add the name of the Theme as a folder.

In our example, this will be ld30.

Add the File

Lastly, you need to add the file of the same name to your Child Theme.

Example 1

If you are overwriting: wp-content/plugins/sfwd-lms/themes/ld30/templates/lesson.php
The path in your child theme will be: wp-content/themes/child-theme/learndash/ld30/lesson.php

Example 2

If you are overwriting: wp-content/plugins/sfwd-lms/themes/ld30/templates/module/tabs.php
The path in your child theme will be: wp-content/themes/child-theme/learndash/ld30/module/tabs.php

And that is it, just add your styles and customizations there and you’ll be well on your way to learning how to customize your LearnDash templates.

3 Comments

  1. Yes this is work for me.
    Thank you

  2. Sadly, this is not working. I tried to do the same with my ld30 and Astra child theme, but it didn’t work.

    • Not sure about Astra or what child theme you are using.

      It works with Divi – we do it and tested

Submit a Comment

Explore more from Divi Engine