[wpdm_package] Search bar shows for packages with more than 10 files

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

Stefanie
Participant

Using the [wpdm_package] shortcode – I’ve noticed that the search bar shows for some packages and not others. It appears to be packages with 10 or more than 10 files. I want to disable the search bar from showing at all. I’ve checked in settings and found “Enable Search in File List,” but it’s unchecked. I couldn’t find any variables to add to the shortcode to hide it.

Example page – https://lincolncountymoclerk.gov/elections/

I need to either be able to remove it, or add a label to the field, as it doesn’t meet ADA compliancy.

#171425

Tanvir
Spectator

Hello Stefanie,
Hope you are well.
Could you please share me the related urls to check the issue?
The link you provided is unable to access.
However, it will be very cooperative if you record reproducing your issue using a tool like this?
If possible please also share temporary admin access in a private reply to solve the issue quickly.

Thanks

#171452

Stefanie
Participant
This reply has been marked as private.
#171515

Tanvir
Spectator

Hello Stefanie,
Actually there is a default condition in WPDM that if files are more than 5, it will show the search bar.
The condition is in FileList.php in the directory wp-content\plugins\download-manager\src\Package

in line 103 if (count($allfiles) > 5) I have changed it to if (count($allfiles) > 50) So it will not show search bar until files are more than 50.
However, if you update wpdm, you have to make this again.

Thanks

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

The topic ‘[wpdm_package] Search bar shows for packages with more than 10 files’ is closed to new replies.