Similar issue … my custom templates are being ignored after the recent update
Button template add-on update for v3.2 will be released within the next 24 hours.
@shafk, may you please elaborate on your issue a little more. Thanks
I have custom a custom version of wpdm-all-downloads.php within my theme folder and it’s not being loaded.
Please rename the file to all-packages-shortcode.php ( new template file name ).
Thank you. When I rename the file and try to access the page with the downloads shortcode I recieve the following error in the log files.
AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function DownloadLink() in /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/divi/download-manager/all-packages-shortcode.php:133\nStack trace:\n#0 /var/www/vhosts/mywebsite.com/httpdocs/wp-content/plugins/download-manager/src/Package/Shortcodes.php(414): include()\n#1 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/shortcodes.php(356): WPDM\\Package\\Shortcodes->allPackages()\n#2 [internal function]: do_shortcode_tag()\n#3 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/shortcodes.php(228): preg_replace_callback()\n#4 /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/divi/includes/builder/class-et-builder-element.php(2770): do_shortcode()\n#5 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/shortcodes.php(356): ET_Builder_Element->_render()\n#6 [internal function]: do_shortcode_tag()\n#7 /var/www/vhosts/highfieldleadershipacademy…’, referer: https://www.mywebsite.com/
Any ideas?
Yes, code in the old template file may not work, please copy all-packages-shortcode.php from /src/Packages/views/ and edit that as per your need.