Open in a new tab/window

Viewing 10 posts - 1 through 10 (of 10 total)
#60390

Rolf Dirks
Member

Hello,

How can I open the download in a new window?

#60421

Shahjada
Keymaster

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.

#70294

Kate Bourque
Member

Hi, how can I do this with the pro version?

#70304

Hi, you can use custom template with direct download link shortcode with link tag and target _blank to open download in new tab.

Thanks

#121374

Sebastian
Participant

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?

#121509

Nayeem Riddhi
Moderator

Hi,
you can follow the link below documentation,

Template Files


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.

#121793

Sebastian
Participant

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>

#131319

Gregory Dietrich
Participant

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.

#131342

Sebastian
Participant

Yeah.. i didn’t get a answer so far… it doesn’t work.. posted on 11.03.2020

#131530

Nayeem Riddhi
Moderator

Hi @ffsupport,

please open a separate ticket for this. I shall check it for you

Thanks.

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Open in a new tab/window’ is closed to new replies.