wordpress - 自定义模板不会覆盖原件(Ultimate Member 插件)
问题描述
根据word press:如果目录结构相同,子主题中的模板应该覆盖原始模板。我正在使用 Ultimate member plugin 这是有关如何使用自定义模板的文档。 https://docs.ultimatemember.com/article/119-overriding-default-ultimate-member-profile-templates 我是我的孩子主题 我完全按照描述的内容进行操作:/theme-folder/ultimate-member/templates / 正在工作但不在:/theme-folder/ultimate-member/templates/profile/
PS:我正在使用最新版本的 WP 和 UM
解决方案
解决了 !!!
文档在第 4 步中说:
您还可以在主题或子主题中创建此文件夹:/theme-folder/ultimate-member/templates/profile/以覆盖配置文件选项卡内容,原始配置文件模板位于:/plugin-folder /templates/profile/
这是错误
的我注意到在我的子主题中电子邮件模板在模板文件夹之外,我没有这样做,这是由插件在设置时完成的。
电子邮件在:/child-theme-folder/ultimate-member/email/
我也尝试在那里移动配置文件文件夹
/child-theme-folder/ultimate-member/profile/
和 Whoooooa !!!!!! 有效。
profile-2.php 和其他模板,例如 login.php 仍然需要在里面子主题文件夹/终极成员/模板/文件夹
推荐阅读
- angular - angular-tree-component 创建上下文菜单
- java - ANTLR4 getCharPositionInLine() 在 LEXER 规则中没有按预期工作
- python - 从最大概率的二元模型中获取下一个单词
- java - 使用 Java API 为 CPU 配置 Tensorflow
- r - R:基于同一数据帧中另一个因素的 NROW 对数据帧的子集进行子集化
- javascript - ES6 类原型 - 类型解析
- react-select - React-Select v2.0.0 历史混乱?
- flutter - 如何将值添加到从颤振到 Firestore 的数组中
- javascript - Javascript onclick firing 4 times
- jquery - 如何在jquery表单构建器中获取更新的json ater每个事件