how to set a download button when click, the pdf file will be automatically download to the user’s pc?
Thanks a lot
rochelle
Hey zqmaqma,
The web browsers by default open the pdf. It is up to the users to change the settings in the browser to download or view pdf files. However, if you like to force download the pdf file you can only do that by using a text link.
Please create a text widget area and add the HTML with download attribute :) You can refer to this link for more info https://davidwalsh.name/download-attribute
Best regards,
Vinay
hi sir, thanks for your kind reply.
Actually, i want to know that how to set a function that could be open or download pdf files after clicking.
it does not matter whether it open on the browser or directly download to the user’s pc.
rochelle
Hi rochelle,
Here are some more articles for you:
http://www.wpbeginner.com/plugins/how-to-add-a-pdf-download-for-posts-in-wordpress/
If you need further assistance please let us know.
Best regards,
Victoria
Hi!
In that case please add a button element and set the link manually with the pdf link.
Regards,
Vinay