In my theme folder ‘sfwd-lms/includes/shortcodes/ld_course_list.php’ file overwrite not working

I'm trying to overwrite my ld_course_list.php file, but I'm having trouble. I tried to use the same plugin folder structure in my child theme, but it did not display the child theme file content.

Plugin Name: LearnDash LMS

Plugin file location : wp-content/plugins/sfwd-lms/includes/shortcodes/ld_course_list.php

Child theme file location : wp-content/themes/Awake/sfwd-lms/ld_course_list.php

The other two locations were also tried: (1) wp-content/themes/Awake/sfwd-lms/includes/ld_course_list.php (2) wp-content/themes/Awake/sfwd-lms/includes/shortcodes/ld_course_list.php

Thanks

1 Answer

Overwriting LearnDash plugin files is not as straight forward as woocommerce, they follow a very different folder structure, try this path:

wp-content/themes/Awake/learndash/shortcodes/ld_course_list.php

or

wp-content/themes/Awake/learndash/ld_course_list.php

Unfortunately there is no proper official documentation on this. Check these articles for more info Article 1 | Article 2

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like