首页 > 解决方案 > 自定义模板不会覆盖原件(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

标签: wordpresstemplatesultimate-member

解决方案


解决了 !!!

文档在第 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 仍然需要在里面子主题文件夹/终极成员/模板/文件夹


推荐阅读