Child theme custom template not being picked up

Viewing 6 posts - 1 through 6 (of 6 total)
#186996

Andy Gilbert
Participant

I’m trying to use a custom page template. Following the instructions on https://www.wpdownloadmanager.com/doc/template-files/ I’ve copied the supplied page-template-default.php, made some ajustments and saved the file into /{child-theme}/download-manager/page-templates/ and selected “Default Template” in the Package settings. Unfortunately it still picks up the “Default Template” in the plugin folder. I’ve also tried placing page-template-default.php into /{child-theme}/download-manager/ and I’ve tried changing the filename and WPDM Template name. The only way I’ve managed to use my custom template is to save it into /wp-content/plugins/download-manager/src/Package/views/page-templates/{custom-name}.php. Unfortunately this gets deleted when the plugin is updated. How do I use a custom template in a child theme?

#186998

Nayeem Riddhi
Moderator

Hello Andy Gilbert,

Hope you are well. And sorry for the inconvenience. if possible, can you please, give your temporary wp-admin login details in a private reply for checking the issue?

Thank you and regards

#187004

Andy Gilbert
Participant
This reply has been marked as private.
#187042

Nayeem Riddhi
Moderator

Hello Andy Gilbert,

I have checked your issue. The template hierarchy is not working from your active theme because it may be conflicts with your theme scripts. Switching to another theme the template file overwriting is working properly as expected. please check and let me know

Thank you and kind regards

#187312

Andy Gilbert
Participant

Thanks for your quick response. I think you are right, another reason not to use Roots/Sage for theme development.

#187315

Nayeem Riddhi
Moderator

Glad to hear that. However, if you need further help with anything else, then please don’t hesitate to open a new topic.

Thank you again and regards

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.