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

in Download Manager Free

Viewing 4 posts - 1 through 4 (of 4 total)
Apr 20, 2022 at 7:09 pm
#171413
Participant
Stefanie
OP

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.

Apr 21, 2022 at 5:05 am
#171425
Spectator
Tanvir

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

Apr 21, 2022 at 3:40 pm
#171452
Participant
Stefanie
OP
This reply has been marked as private.
Apr 23, 2022 at 5:46 pm
#171515
Spectator
Tanvir

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.