Paul

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
in reply to: Download was Expired. #149301

Paul
Member

I’ve got it fixed! Thanks to your tip about the version I thought about checking my custom wpdm-all-downloads.php file in my child-theme.
It contained old code, just copied the new code from the latest version into that file and tested it.
It’s now working, the download link shows as:

<a class="wpdm-download-link download-on-click btn btn-primary " rel="nofollow" href="#" data-downloadurl="https://linkhere.com">Downloaden</a>

in reply to: Download was Expired. #149300

Paul
Member

I’m using version 5.3.5 at the moment, that must be the latest?
How did you remove those classes with the other guy?

Thanks again.

in reply to: Download was Expired. #149298

Paul
Member

Thanks for the quick reply!
The website is private and I cannot make it public in an instance.

The download links have the following HTML:

<a class="wpdm-download-link wpdm-download-locked" rel="nofollow" href="#" onclick="location.href='https://linkhere';return false;"><i class=""></i>Downloaden</a>

The link is created by this code in my custom wpdm-all-downloads.php file:

<td class="pdf-file">
    <small>
        <?php
        $number_files = count($data['files']);

        if ($number_files == 0){
            echo "<span style='color:#cccccc'>Niet beschikbaar</span>";
        } else {
            echo "(" . $number_files . ") " . $download_link;
        }
        ?>
    </small>
</td>

The $download_link outputs the HTML with the classes: “wpdm-download-link wpdm-download-locked”.
What is the right way to remove them?
I’ve found a few parts of this code in the wpdm-functions.php file, but it won’t change when I edit it and place it in my Child-theme.

Thanks again!

in reply to: Download was Expired. #149295

Paul
Member

Hi Guys,

I’ve got the exact same problem.
How can I remove the “wpdm-download-link wpdm-download-locked” classes from the download link?
If I manually remove them via Chrome console, it works without the expiration notification.

Thanks in advance!

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