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

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.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest