Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Back button on product page

Home / Forums / Kadence Theme / Back button on product page

This topic is: Not Resolved
[Not Resolved]
Posted in: Kadence Theme
September 17, 2020 at 1:02 pm

Hi

I’m trying to add a back button to my products. I used the following code in the functions.php file.

add_action( ‘woocommerce_after_add_to_cart_button’, ‘my_function_sample’, 10 );
function my_function_sample() {
global $product;

It doesn’t look good – it appears against the Add to basket button. It’d be better if it was below or at least wasn’t in contact with the butoon. How can I change it or should I be doing something else?

An example product on the site is

Thanks in advance.

  • The forum ‘Kadence Theme’ is closed to new topics and replies.