KatkaG replied
Perfect! Thank you.
Hi. I added a custom 'go back' button in the woocommerce_after_add_to_cart_form page hook on my single product pages. You can see it here:
https://www.bluechiselstudio.com/product/bridge-into-morning-shop-listing/
I used the Code Snippet plugin and the code I added is:
add_action( 'woocommerce_after_add_to_cart_form', 'my_function_sample', 10 );
function my_function_sample() {
global $product;
echo ' <button type="button" onclick="history.back();"> Go back </button> ';
}
The button works exactly like I want but I'm wondering if you can help with a CSS code so I can customize the size, font, and colour of this button.
Thank you.
Want to join this conversation or access attachments? Sign in first.
Open your ticket archive, review validated licenses, and continue product support conversations from one customer portal.