Ultimate Member Template Override Issue: Custom Template File Not Recognized
-
Hello Ultimate Member Community,
I’m currently experiencing an issue with overriding the members-grid.php file in the Ultimate Member plugin, and I’m hoping someone could assist.
WordPress Version: 6.2.2
Ultimate Member Version: 2.6.3
PHP Version: 8.1Description of the Issue:
I am trying to override the members-grid.php file and have copied the original file into my theme directory following the path specified in the documentation (https://docs.ultimatemember.com/article/1516-templates-map). The path used is:
wp-content/themes/{active_theme}/ultimate-member/
.However, when I go to the Ultimate Member Override templates settings and click on ‘re-check templates’, the custom template file is not being recognized. Interestingly, the file is recognized if it’s moved further into the
/wp-content/themes/{active_theme}/ultimate-member/templates/
directory. The file then appears in the table when I press ‘re-check templates’, but the overriding does not take effect.Steps to Reproduce:
- Copy
members-grid.php
towp-content/themes/{active_theme}/ultimate-member/
. - Navigate to Ultimate Member settings.
- Click on ‘re-check templates’.
- The custom template is not recognized.
Expected Result:
The custom template should be recognized when ‘re-check templates’ is clicked, and the override should take effect.
Actual Result:
The custom template is not recognized unless moved further into the
/templates/
directory. Even then, while it appears in the table after ‘re-check templates’ is clicked, the override does not take effect.This seems to be a bug, and I’d appreciate any assistance in rectifying this situation. If there are any further details or additional information needed, please let me know. Thanks in advance for your support!
Best Regards,
Ben - Copy
- The topic ‘Ultimate Member Template Override Issue: Custom Template File Not Recognized’ is closed to new replies.