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-managerinside your active theme dir - Now copy the files you want to modify from
/src/{ComponentDir}/viewsdir to/{active-theme}/download-manager/dir. - Customize template file(s) in
{active-theme}/download-managerdir as per your need - Keep dir structure, means, a file from
/src/Packages/views/link-templatesdir should go to/{active-theme}/download-manager/link-templatesdir.
- Create a dir named
-
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-mamagerexcept the ones you need to modify - Update template file(s) in
{active-theme}/download-managerdir as per your need
- Copy files from`/plugins/premium-packages/templates/` dir to
Theme Functions:
Check all theme functions here
Need a Custom Category Page Template?
Need custom category page template and download details page template for your theme, we can build those 2 page-templates for you with only 1 hour of custom upgrade service. You may order it from the following link.