Hello @webcart
By default, you are using link-template-default.php for the link template and page-template-default.php for the page template.
So, you have to replace [download_link] with <a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a> in the related PHP file.
Please follow the below link properly in order to customize a related template file.
https://www.wpdownloadmanager.com/doc/template-files/
Thank you
Please give your URL to check.
Thanks @humayonk,
This is what I’ve done with those two files in the previous versions and it worked well.
Now I can not locate those files.
Where are they?
Also Could not find the solution in the link you gave mne.
your js code will work for individual file download links only, as inddl class is only available with the individual download links. Which is only available with the pro version.
In the new update, file structure is changed, link/page template files are in src/Packages/views/
Change your code too:
<script>
jQuery(function($){
$('.wpdm-download-link').each(function(){
$(this).attr('target','_blank');
});
});
</script>
Thanks.
Where I should add this script?
Tried in functions.php without success.
you may add in footer.php
Thanks.
Does not work.
Still opens on same window.
I tested the code, it worked fine for me, please post here https://www.wpdownloadmanager.com/support/forum/download-manager-free/ to check it in detail.