- This topic has 9 replies, 3 voices, and was last updated 5 years, 8 months ago by
Nayeem Riddhi.
Hello,
How can I open the download in a new window?
Sorry, no such option is available with free version. This is possible with pro version using the template builder, but only applicable for public downloads.
Hi, how can I do this with the pro version?
Hi, you can use custom template with direct download link shortcode with link tag and target _blank to open download in new tab.
Thanks
i use the pro version an the shortcode wpdm_all_packages
i set the view options in the settings but i want to view in a new tab or window. How?
Hi,
you can follow the link below documentation,
by default, you are using link-template-default.php for link template and page-template-default.php for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in tpls>page-templates for page template or tpls>link-templates for link template. And you have to replace [download_link] with <a href="[download_url]" class="btn btn-primary" target=_blank>[link_label]</a> in related php file.
Thanks.
-
This reply was modified 6 years ago by
Nayeem Riddhi.
Hi there..
i guess i didn’t understand it right..
– created a dir named download-manager in my child theme dir
– copied the link template in it
– added [link_label] instead of [download_link]
but it doesn’t work..
<!– WPDM Link Template: Default Template –>
<div class=”link-template-default card mb-2″>
<div class=”card-body”>
<div class=”media”>
<div class=”mr-3 img-48″>[icon]</div>
<div class=”media-body”>
<h3 class=”package-title”>[page_link]</h3>
<div class=”text-muted text-small”><i class=”fas fa-copy”></i> [file_count] [txt=file(s)] <i class=”fas fa-hdd ml-3″></i> [file_size]</div>
</div>
<div class=”ml-3″>
[link_label]
</div>
</div>
</div>
</div>
So I just tried to follow this…and it isn’t working for me.
This is my page: https://evergreenmaids.com/employee-resources/sds, I’m using the shortcode of [wpdm-all-packages].
In my theme, I created the new directories and copied the files and updated the [download_link]. Here are some screenshots:
Structure: https://s.grcwk.co/P8ue9jkg
Page Template: https://s.grcwk.co/o0uveBEP
Link Template: https://s.grcwk.co/6qu2r7Qn
What did I miss here? I am using the Pro version.
-
This reply was modified 5 years, 9 months ago by
Gregory Dietrich.
Yeah.. i didn’t get a answer so far… it doesn’t work.. posted on 11.03.2020
The topic "Open in a new tab/window" is closed to new replies.