Templates

Template Files

2 min read Updated Feb 20, 2026

When you are developing a theme for WordPress Download Manager, you need to add 2 custom templates:

taxonomy-wpdmcategory.php

The template for custom taxonomy “wpdmcategory”, will show Download Manager package when you open a WordPress Download Manager category URL. Usually, you can create a copy from archive.php and rename it to taxonomy-wpdmcategory.php
Category Page Demo

single-wpdmpro.php

The template for custom post type “wpdmpro”, will show WordPress Download Manager Package details when you open a WordPress Download Manager package URL. Usually, you can create a copy from single.php and rename it to single-wpdmpro.php
Package Details Page Demo

Changing Template Files in /plugins/download-manager/src/{ComponentDir}/views/ ( Download Manager Plugin ) dir:

Create a dir named download-manager inside  your active theme dir

Now copy the files you want to modify from /src/{ComponentDir}/views dir to /{active-theme}/download-manager/ dir.

Customize template file(s) in {active-theme}/download-manager dir as per your need

Keep dir structure, means, a file from /src/Packages/views/link-templates dir should go to /{active-theme}/download-manager/link-templates dir.

Editing Email Templates:

Copy the files you want to modify from /src/__/email-templates dir to /{active-theme}/download-manager/email-templates dir.


Changing Template Files in /plugins/wpdm-premium-packages/templates/ ( Premium Packages Plugin ) dir:

Copy files from`/plugins/premium-packages/templates/` dir to {active-theme}/download-manager

Now remove all files from {active-theme}/download-mamager except the ones you need to modify

Update template file(s) in {active-theme}/download-manager dir as per your need