简体   繁体   English

在我的主题文件夹“sfwd-lms/includes/shortcodes/ld_course_list.php”中,文件覆盖不起作用

[英]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.我正在尝试覆盖我的 ld_course_list.php 文件,但我遇到了麻烦。 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插件名称:LearnDash LMS

Plugin file location: wp-content/plugins/sfwd-lms/includes/shortcodes/ld_course_list.php插件文件位置: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子主题文件位置: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另外两个位置也试过了:(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谢谢

Overwriting LearnDash plugin files is not as straight forward as woocommerce, they follow a very different folder structure, try this path:覆盖LearnDash插件文件不像 woocommerce 那样直接,它们遵循非常不同的文件夹结构,试试这个路径:

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 第二条

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM