Hiding download pdf files from website search

in Download Manager Free

Viewing 4 posts - 1 through 4 (of 4 total)
Feb 14, 2019 at 5:28 pm
#93749
Member
Lex Weston
OP

I am using Download manager to add PDF safety data sheet downloads to each product page on my website. Is there a way I can stop these datasheets from appearing on my website when searching and make it possible that they can only be found once on the specific product page?

The way it is at the minute can be very confusing for a customer as when they are searching for a product on the websites search bar they are being shown the associated pdf downloads apposed to the specific product. Any help would be greatly appreciated. Thanks

Feb 16, 2019 at 5:44 pm
#93824
Moderator
Shahriar
Staff

Replace this 'exclude_from_search' ► (bool)get_option('__wpdm_exclude_from_search', false), using the following code,

'exclude_from_search' ► (bool)get_option('__wpdm_exclude_from_search', true),

in /download-manager/download-manager.php file line 180. That should exclude downloads from the search result.

Feb 18, 2019 at 4:41 pm
#93927
Member
Lex Weston
OP
This reply has been marked as private.
Feb 18, 2019 at 7:44 pm
#93937
Moderator
Shahriar
Staff

You can go to the Dashboard PLugins Editor page to edit the plugin file. Or use FTP to edit the file. If you need help with this send login info in private reply. I will add the code for you.

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

The topic "Hiding download pdf files from website search" is closed to new replies.