Archived topic
Child Theme WooCommerce
3 replies · Started by Rob on January 16, 2019
Hi, Im using the GP Child Theme.
I want to add a simple button to the WooCommerce My Account page, but Im reading on the web that for custom pages its best to "copy the file to your child theme", but not actually how to do that.
Do I simply copy the my account php into the child theme folder, do I then need to tell WooCommerce to look there instead after I copy it?
Hi there,
if its just a simple button then you could use one of the Woocommerce Hooks:
https://businessbloomer.com/woocommerce-visual-hook-guide-account-pages/
Then use the GP Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
Thanks David, Ill give it a go :)
You're welcome. Just to note. In the Element > Hooks List there is a Custom Hook, this provides a field for you to add your Custom Hook, so just copy and paste the one you need from the visual guide.