Categories

Saturday, December 21, 2024
#919814419350 therichposts@gmail.com
WoocommerceWoocommerce HooksWordpressWordpress HooksWordpress Tricks

How to add download pdf link in woocommerce single product page?

How to add download pdf link in woocommerce single product page?

Hello to all, welcome to therichpost.com. In this post, I will tell you, How to add download pdf link in woocommerce single product page?

I am showing download pdf link on single product page with help of woocommerce hook.

Here is the woocommerce hook and please add carefully into your theme’s functions.php file:

add_action('woocommerce_before_single_product_summary','download_pdf',11);
function download_pdf()
{
    echo "<a href='add_your_pdf_link' target='_blank'>Download PDF</a>"; 
}

 

If you have any query regarding this then please do comment below.

Jassa

Thank you

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 19, MedusaJs, Next.js, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

4 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.