Archived topic
Removing the view cart section above woo com checkout. Link to website included
7 replies · Started by Tulsa on November 20, 2018
Hi Generate Press team,
Can you please suggest me a way to remove the View Cart section that is above my checkout on woo com.
Thank you,
Kind Regards
Tulsa
Hi there,
can you link me to the site? you can edit your original topic and use the Site URL field for privacy
Hi David,
Sure thing, just did it.
After adding the product to the cart you will be taken to the checkout where the green bar is at the top, I would like to remove that green bar.
Thank you!
Tulsa
Try adding this filter:
add_filter( 'wc_add_to_cart_message_html', '__return_false' );
Adding PHP:
https://docs.generatepress.com/article/adding-php/
Thanks David,
Can you please inform me of where and how to apply this code as I am very much a rookie when it comes to implementing code.
Thanks alot!
Kind Regards,
Tulsa
Of course the document i provide the link to gives two options:
1. Set up a child theme and add it to its Functions.php
https://docs.generatepress.com/article/using-child-theme/
2. Use the Code Snippets plugin. This allows you to simply create a new snippet, add the code, activate and save.
Number 2 is the quicker simpler method. Maybe investigate Child Themes at a later date :)
Perfect it worked! Thanks so much David, your help is really appreciated!
Cheers,
Tulsa
Awesome - glad to be of help.