Hi E2Pdf,
Thanks for your last advice. Your code works perfect on the description of Woocommerce single product page.
I tried to put the E2PDF download link on my Elementor (other Wordpress plugin) template single product page today but it didn't work. The link will refer to the same Woocommerce product page (not the generated E2PDF). Below are the HTML code I adopted -
<a class="button" href="[e2pdf-download id=1 output=url esc_url_raw=true]" target="_blank" rel="noopener">Download PDF</a>
<a class="button" href="[e2pdf-download id="1" output="url"]" target="_blank" rel="noopener">Download PDF</a>
<a class="button" href="[e2pdf-download id=1 output=url]" target="_blank" rel="noopener">Download PDF</a>
Of cause, If I put these HTML code directly on the Woocommerce description content, it works properly. Do you know how to fix it?
In Elementor, there is a button function. Attached please find the screenshot of the setting. What should I put for the button link?
Thanks and regards,
Koey