Hi
You can choose any convenient way here https://wordpress.org/support/topic/remove-add-to-cart-buttons-from-product-page
Try to use also wordpress forum for your custom changes 😉
Thanks