- This topic has 5 replies, 2 voices, and was last updated 2 years, 4 months ago by
Nayeem Riddhi.
I’m trying to get my link to present like this:
<!-- WPDM Link Template: Default Template -->
<ul class="nodaljump docs">
<li>
<a>[download_link]
<i class="red far fa-file"></i>[title]</a>
</li>
</ul>
(so that the icon is in the link).
But the short code [download_link] creates it’s own linking (a). Is there any way to edit that short code?
I’ve tried using the shortcode here: [wpdm_direct_link id="27861" target="_blank" label="Download Me!" class="css class names" eid="element-id"]
But that just takes me to the main download single page (without any files).
Basically the final code of the template that I want is this:
<ul class="nodaljump docs">
<li>
<a href="#unlock" class="wpdm-download-link wpdm-download-locked btn btn-primary " data-package="27861"><i class="red far fa-file"></i>Test File Download</a>
</li>
</ul>
Hello Josh Rudzek,
Hope you are well. For your first format, you can also try this,
<a href="[download_url]" class="btn btn-info"> <i class="red far fa-file"></i>[title]</a></a>
For template tags, you can visit here, https://www.wpdownloadmanager.com/doc/templates/template-tags/
please check and let me know
Thank you and regards
Thank you for your help!
When I use this code:
<!– 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">
[download_link]
</div>
</div>
</div>
</div>
everything works.
When I try this code:
<!– WPDM Link Template: Default Template –>
<ul class="nodaljump docs">
<li>
<a href="[download_url]"><i class="red far fa-file"></i>[title]</a>
</li>
</ul>
It loads visually but it doesn’t seem like the JS works.
it just refreshes the page.
Here is the displayed code:
<ul class="nodaljump docs">
<li>
<a href="#"><i class="red far fa-file"></i>Test File Upload</a>
</li>
</ul>
The page you referenced said that shortcode [download_url] will only work if no lock is applied. I’m using the captcha lock…which is the whole point of for me of using the plugin.
Sorry for the inconvenience. Can you please try this code in your Link Template,
<a href="[download_url]" data-package='[ID]' class="wpdm-download-link wpdm-download-locked btn btn-primary"> [title] </a>
please check and let me know
Thank you and regards
That worked. Thank you so much.
You are welcome. If you get some free moments, can you please give us a 5* here https://wordpress.org/support/plugin/download-manager/reviews/?rate=5#new-post, It will inspire us a lot. Thanks in advance 🙂
The topic "How to format download link" is closed to new replies.