-
AuthorPosts
-
October 29, 2022 at 8:39 am #1370615
Hello together
I have installed here the store from woocommerce
now I have a questionWhen the shopping cart is empty, the button “Back to store” appears then the product list is displayed.
is it possible to change the link in this button, that it shows to my store (menu item)
If I change this link in woocommerce settings products store page then afterwards the page my-shop and the product list are displayed
thanks in advance
kind regards
FranzOctober 29, 2022 at 8:12 pm #1370662Hey schweg33,
Thanks for the link to your site, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function change_cart_backward_link() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('#top.<a href='https://refer.wordpress.com/r/84/woocommerce/' target='_blank' rel="nofollow">woocommerce</a>-cart .button.wc-backward').each(function() { $(this).attr('href','/mein-shop/'); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'change_cart_backward_link');
Best regards,
MikeOctober 29, 2022 at 9:20 pm #1370673Hello Mike
Thank you for your quick feedback
unfortunately I get an error back (see below)
I still have to enter a path in the code.thank you
kind regards
franzOctober 29, 2022 at 9:36 pm #1370676Hi,
Please ensure that you are copying the code from the forum and not an email, otherwise include admin login in the Private Content area so we can be of more assistance.Best regards,
MikeOctober 29, 2022 at 9:42 pm #1370677Thanks
Hello Mike
I have copied the code from the forum.kind regards
Franzor do you need the ftp connection
October 29, 2022 at 9:59 pm #1370678Hi,
Thanks for the login, I missed a semicolon
I added the function for you, please check.Best regards,
MikeOctober 29, 2022 at 10:04 pm #1370679Thanks Mike
Now it fits great
you can close this requestkind regards
Franzthank you for your super :-) SUPPORT
October 29, 2022 at 10:11 pm #1370681Hi,
Glad we were able to help, and thanks for the feedback, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘change link’ is closed to new replies.