- This topic has 8 replies, 3 voices, and was last updated 6 years, 6 months ago by
Ed Ammendola.
I have the free version. My packages are mostly PDFs. I am using (and wish to continue using) the wpdm_all_packages shortcode because of the pagination and layout. I want use the title as a link to directly download as you show in your demo here: https://demo.wpdownloadmanager.com/wpdmpro/package-list-in-responsive-table/ (eliminating the need for a separate button), but with the ability to open in a new tab or page. I see others have asked about opening in a new tab, but I can’t see any of restricted answers. I want to continue using wpdm_all_packages. Isn’t there a way I can change the javascript to do an onclick=(window.open yada yada yada) or is this absolutely impossible the way the component is written?
Hi Ed, You can try the following….
[wpdm_all_packages items_per_page="20" categories="cat slugs,cat slugs,cat slugs" jstable=1 order_by="field_name" order="ASC" cols="page_link,file_count,download_count|categories|update_date|download_link" colheads="Title|Categories|Update Date|Download::155px"]
Let me know if you need further help!
I admit I may not have been clear with the first part of my question.
You are correct “page_link” does make the title a link, but I don’t want a link to the download page. I want a link to the file itself.
The second part of the question you did not address at all.
To summarize my initial question.
I want the title to be a link that opens the actual file in a new tab.
Yes, That is possible. Are you able to change code by yourself? Or if you would like to take my help. Kindly send me your Admin login details in a private reply. I will be happy to do it for you!
Hi,
To keep your customization, please copy create a dir named download-manager inside your active theme dir. Then copy the template file wpdm-all-downloads.php there.
I need to know how I can retain the class.Package.php file, as well.
I tried moving class.Package.php to both of these places and it is not picked up:
\wp-content\themes\my-theme\download-manager\class.Package.php
\wp-content\themes\my-theme\download-manager\libs\class.Package.php
You may disregard the last post from me regarding the class.Package.php override. I was able to keep class.Package.php as provided by the most recent version update and make all necessary changes to the wpdm-all-downloads.php file in my custom overrides folder. Thank you.
The topic "wpdm_all_packages title direct download hyperlink & open in new tab" is closed to new replies.