Automatically redirecting on download link

in Download Manager Free

Viewing 2 posts - 1 through 2 (of 2 total)
Dec 25, 2020 at 9:03 am
#143601
Participant
mina chas
OP

Want to stop the download link automatic redirect and want the download link to open in a new window, please guide how to do this?

Dec 25, 2020 at 9:35 am
#143604
Moderator
Nayeem Riddhi
Staff

by default, you are using link-template-default.php for link template and page-template-default.php for the page template. you can follow this doc, https://www.wpdownloadmanager.com/doc/template-files/ for back-up your files, 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.

For opening in new windows, please add this code replacing [download_link] in page/link templates PHP file as i described above,

<a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>

thanks

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

The topic "Automatically redirecting on download link" is closed to new replies.