- This topic has 21 replies, 2 voices, and was last updated 3 years, 3 months ago by
Leo.
-
AuthorPosts
-
December 18, 2022 at 11:35 am #2466207
metcomllc@aol.com
How do I Add a Button to a WooCommerce Product Page?
December 18, 2022 at 12:25 pm #2466243Leo
StaffCustomer SupportHi there,
YOu can use a WooCommerce hook:
https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/With a block element:
https://docs.generatepress.com/article/block-element-hook/Hope this helps 🙂
December 18, 2022 at 12:59 pm #2466263metcomllc@aol.com
Please send me the exact (code) to add a button to a WooCommerce product page.
December 18, 2022 at 1:14 pm #2466284Leo
StaffCustomer SupportIf you are using a block element with GenerateBlocks then you can use the buttons block:
https://docs.generateblocks.com/article/buttons-overview/If you aren’t using GB then you can use the core button block:
https://wordpress.org/support/article/buttons-block/It shouldn’t require any code at all.
December 18, 2022 at 1:32 pm #2466293metcomllc@aol.com
The Generate blocks plugin is installed but I am unsure where to find the block element.
https://postimg.cc/f3PY2tvYDecember 18, 2022 at 1:32 pm #2466296Leo
StaffCustomer SupportDecember 18, 2022 at 1:55 pm #2466310metcomllc@aol.com
December 18, 2022 at 5:19 pm #2466400Leo
StaffCustomer SupportA hook needs to be selected:
https://www.screencast.com/t/9o4AZIwrEe1dDecember 18, 2022 at 5:59 pm #2466419metcomllc@aol.com
Which hook needs to be selected?
December 18, 2022 at 6:33 pm #2466428Leo
StaffCustomer SupportThat depends on where you are trying to add it.
Please review my initial reply that included a link to the hook location visual guide:
https://generatepress.com/forums/topic/how-to-add-a-button-to-woocommerce-product-page/#post-2466243Those are hooks from WooCommerce itself so unrelated to GP.
December 18, 2022 at 6:52 pm #2466439metcomllc@aol.com
It is the Product description area. I selected woocommerce_single_product_summary but that is not working.
December 19, 2022 at 11:19 am #2467335Leo
StaffCustomer SupportCan you clear and disable your caching plugin first?
December 19, 2022 at 11:55 am #2467372metcomllc@aol.com
I cleared and disabled the cache plugin but it is still not working.
December 19, 2022 at 12:03 pm #2467376Leo
StaffCustomer SupportCan you show me a screenshot of your setup again?
December 19, 2022 at 12:07 pm #2467377metcomllc@aol.com
-
AuthorPosts
- You must be logged in to reply to this topic.