WordPress Download Manager
WordPress Download Manager
  • Pricing
  • Demo
  • Extend
    • Full Access Pack Get access to all items on this site with a BIG DISCOUNT
    • WordPress Form Builder Plugin Try it even if you are using another one and you may thank me later :)
    • Attire All-in-One WordPress Theme, only theme you will ever need

    Add-ons

    • Add-ons
    • Cloud Storage
    • eCommerce Add-ons
    • Email
    • Featured
    • Free
    • Marketing
    • Payment Gateways
    • Social Networking
    • Tools
    • UI
    • Widgets

    Customization Service

  • Discount Packs
  • Docs
  • Support
    • Search in Forum
    • Download Manager Pro
    • Download Manager Free
    • Pro Feature Request
    • How To...
    • Tips and Tricks
    • Contact Us
  • Blog
Login | Register
Forgot Password?
— Don't have an account yet? Register Now —
Home / Topics / Download Manager Free / How to format download link

How to format download link

  • This topic has 5 replies, 2 voices, and was last updated 1 year, 9 months ago by Nayeem Riddhi.
Viewing 6 posts - 1 through 6 (of 6 total)
Nov 15, 2023 at 7:08 am #191326

Josh Rudzek
Participant

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>
Nov 15, 2023 at 9:50 am #191333

Nayeem Riddhi
Moderator

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

Nov 15, 2023 at 4:19 pm #191358

Josh Rudzek
Participant

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.

Nov 15, 2023 at 5:02 pm #191359

Nayeem Riddhi
Moderator

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

Nov 15, 2023 at 11:18 pm #191363

Josh Rudzek
Participant

That worked. Thank you so much.

Nov 16, 2023 at 6:08 am #191374

Nayeem Riddhi
Moderator

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 ๐Ÿ™‚

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

The topic ‘How to format download link’ is closed to new replies.

footer-logo

WordPress Download Manager

All in One Digital Asset Management & Complete eCommerce Solution for Selling Digital Products

Quick Access

  • Try Demo
  • Pricing
  • Affiliate
  • Contact

Blog

  • Updates
  • How-to
  • New Release
  • Tips

Support

  • Support Forum
  • Priority Support
  • Feature Request
  • Terms and Conditions