How to format download link

in Download Manager Free

Viewing 6 posts - 1 through 6 (of 6 total)
Nov 15, 2023 at 7:08 am
#191326
Participant
Josh Rudzek
OP

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
Moderator
Nayeem Riddhi
Staff

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
Participant
Josh Rudzek
OP

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
Moderator
Nayeem Riddhi
Staff

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
Participant
Josh Rudzek
OP

That worked. Thank you so much.

Nov 16, 2023 at 6:08 am
#191374
Moderator
Nayeem Riddhi
Staff

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.