Custom Template Broke
-
Hi there,
I’m running Download Monitor since 2020 with a custom button template. Great plugin! Unfortunately since one of the last updates my custom template is not working like it used to.
Strangely enough though, it’s still working when I’m logged in as administrator … but not for regular traffic.
The button should only display “Download”. Now you see the default filename and download count.
I tried moving the file to themes/Divi/download-monitor/.. , with no succes.
Is this a known issue or is there anything I can do?
Thanks in advance!
Code: (location: /wp-content/plugins/download-monitor/templates/content-download-labmotionsystems.php)
<?php /** * Custom button, shows "Download" only */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly /** @var DLM_Download $dlm_download */ ?> <a class="download-link" title="Download file" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow"> Download </a>
The page I need help with: [log in to see the link]
- The topic ‘Custom Template Broke’ is closed to new replies.