This reply has been marked as private.
- Two types of downloads: one for all logged in users, one for customers only (specified by user roles)
- The downloads are managed by “WPDM Packages by Category” widgets
- The link template is customized as shown below
- The purpose is to immediately start the download (downloads for all) or after accepting the conditions (dld for customers), with no additional template showing that has a “Prev” and “Next” button that would lead to packages that are not supposed to be visible for the category of users
Here follows the template code. The [download_link_extended] does all the above, generates the word “Download” marked as link and also reacting like a link should react on mouse click – only the download is not starting, like the link goes to nowhere.
<style>
.app_name {
color: #0000c0;
font-family: sans-serif;
font-size: larger;
font-weight: lighter;
}
.company_name {
color: #408080;
font-family: sans-serif;
}
.ptitle {color: #408080; fint-size: xx-large; }
</style>
<div class="panel panel-default">
<div class="panel-body">
<div class="media">
<div class="pull-left">[icon]</div>
<div class="media-body"><strong class="ptitle">[title]</strong>
[description]
<div><strong>[download_link_extended]</strong></div>
</div>
</div>
</div>
<div class="panel-footer">[file_size]</div>
</div>
For showing all categories and downloads on a single page with different styles, you can use this add-on, and you will also able to customize the link-templates for using in that shortcode,
WPDM Directory Add-on
and for elementor, you can use this add-on,
Elementor Addons
please let me know further if you need more help,
thanks
There also available default link and page template in the package settings > dropdown page or link templates
, but if you want to bulk apply to the all packages, you can use this add-on, https://www.wpdownloadmanager.com/download/wpdm-default-values/, and for login issue, please share your package URL
thanks
Can you remind me how to set the default link and page template?
When I login to download a pkg I stay on the customer login page instead of being redirected to the pkg title named page.
You will find Image Hover Split template in Import Template option from Downloads > Templates
option, and then you can use it as a link template, for package inside folder you can use [wpdm_tree]
shortcode, and you have to use this add-on, https://www.wpdownloadmanager.com/download/wpdm-extended-short-codes/
thanks
For this section, https://share.getcloudapp.com/04uOELYK
you need this add-on, https://www.wpdownloadmanager.com/download/wpdm-directory-add-on
And for this section, https://share.getcloudapp.com/mXu6YJxY
you have to use the app-card template, I have already imported from this section, https://share.getcloudapp.com/YEuyrBbg
in your link-templates,
and for this section, https://share.getcloudapp.com/4guJKZEG
you have to use this link-template, Call to Action 4
and like this page https://demo.wpdownloadmanager.com/wpdmpro/downloads/movies/, you have to use,
Image Hover Split from import template, please let me know if you need more help,
thanks
Hi!
Yes… I try to explain me better 🙂
In my website I don’t need to use page feature. I only need a unique link template that open file in new tab.
In my template (cloning and modifying link_template_panel):
<div class="card">
<div class="card-body">
<div class="media">
<a class="mr-3 img-48" href="[page_url]">
[thumb_96x96]
</a>
<div class="media-body">
<h3 class="media-heading p-0 m-0">[page_link]</h3>
<div class="meta text-white-50 text-small mt-1"><i class="fas fa-hdd text-white-50"></i> [file_size] <i class="ml-2 far fa-arrow-alt-circle-down text-white-50"></i> [download_count] [txt=Descàrregues]</div>
</div>
</div>
</div>
<div class="card-footer"><div class="row"><div style="line-height: 30px;" class="col-6">[create_date] </div><div class="col-6 text-right align-right"><a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a></div><div style="clear: both"></div></div></div>
</div>
I want to have thumbnail and media heading, but I don’t want to link to page_url. I need to link them to download_url (like DOWNLOAD button).
Can you help me with that code?
To transalte, I will use Loco Translate 🙂
Thank you very much!
This reply has been marked as private.
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 page-templates
for page template or 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.
Okay, I got it now, you are facing the issue with the login link, due to the css classes wpdm-download-link wpdm-download-locked
, I’ve removed those classes and it should work as a regular link.
This reply has been marked as private.
This reply has been marked as private.
Hi,
I think I may not have explained my issue properly.
The link template that is applied to all downloads by default (the global default setting) is link template ‘A’ let’s say. I would like to change the global default to template ‘B’, a different template, so that it will universally apply across my site.
Thank you for getting back to me. I looked at the two sites and to be honest it is a bit confusing.
Our “Library” page has this code:
[vc_row css=”.vc_custom_1501627181431{padding-top: 48px !important;padding-bottom: 10px !important;}”][vc_column][vc_column_text][breadcrumb]
<h1>Library</h1>
[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column][vc_column_text][wpdm_all_packages items_per_page="50" jstable=0 order_by="date" order="DESC"][/vc_column_text][/vc_column][/vc_row]
As you can see [wpdm_all_packages] shortcode is present.
How would I make a single download package which appears on that “Library” page not show the the ‘Download’ button link?
pardon me i dont get it
#1 .. which part i should to edit ?
#1.a. for open new window
#1.b. for limit the list only 5 or 7… because i have plan to put updated file/pdf at same link. so my visitor can choose which one they one to download ( i mean not manually delete from Download—>all post—> my post —-> download field… but by script )
#2 ..
if i have 1 file pdf. with external file hosting like mediafire
but some how mediafire delete my pdf file.
how to create reported broken link / link missing from visitor.
This reply has been marked as private.
After a year of flawless use, today I tried to download files from google and nothing happens. In the download app I can open google drive, I select the file, but file does not link in the package. Help… downloads are an important part of my my website.
worspress v 5.5.1, wpdm v 5.1.20, wpdm google explorer v 1.5.0
I’ve added the following js code to fix the dropdown conflict:
<script>
jQuery(function($){
$('.btn-clps').on('click', function(){ $($(this).attr('href')).slideToggle(); });
});
</script>
Use the following css to hide the blue box shadow:
.w3eden .btn-primary:not(:disabled):not(.disabled):active:focus, .w3eden .btn-primary:not(:disabled):not(.disabled).active:focus, .w3eden .show > .btn-primary.dropdown-toggle:focus {
box-shadow: none !important;
}
If you want to remove the title link, any other info in the template, that can be done by editing the link template ( https://www.wpdownloadmanager.com/doc/templates/ ), however, I’ve adjusted it for you.
This reply has been marked as private.
Hi, this page should only show the price list to certain user groups. I’ve set the price list to only allow access to the relevant group and also content permissions. It’s set in settings to ‘When user is not allowed to download:’ to block everything but it still shows the row with the download details, the shortcode is:
[wpdm-all-packages title="Price List" items_per_page="20" categories="pricelist" jstable=1 order_by="title" order="ASC/DESC" cols="title|categories|update_date|download_link" colheads="Title|Categories|Update Date|Download::155px"]
Many thanks
Hi. I still believe you do not understand what I wish to accomplish.
Library
Have a look at the image above. As you can see there are many files I can choose to download from. I wish to remove the green bracketed “Download” link from this page; not the URL page for an individual download package file.
Does this help you understand what i wish to achieve?
Hi,
You can remove the download button just by removing [download_link]
tag from the link/page template.
Templates
Hi,
Since a couple of weeks the download link on my download-page doesn’t work anymore. It links to ‘#’. If I click the title of a donload and in the next screen on the tab ‘Added files’, only then it works. Can you help me? My customers are complaining.
Thanks,
Bart