Child theme custom template not being picked up

in Download Manager Free

Viewing 6 posts - 1 through 6 (of 6 total)
May 22, 2023 at 11:34 am
#186996
Participant
Andy Gilbert
OP

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?

May 22, 2023 at 12:04 pm
#186998
Moderator
Nayeem Riddhi
Staff

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

May 22, 2023 at 2:40 pm
#187004
Participant
Andy Gilbert
OP
This reply has been marked as private.
May 22, 2023 at 3:18 pm
#187042
Moderator
Nayeem Riddhi
Staff

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

May 22, 2023 at 4:14 pm
#187312
Participant
Andy Gilbert
OP

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

May 23, 2023 at 4:14 am
#187315
Moderator
Nayeem Riddhi
Staff

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)

The topic "Child theme custom template not being picked up" is closed to new replies.