WordPress / Web Development Tutorials
(Best WordPress Tutorials)

CSSHTMLJavaScriptjQueryMySQLPHPSilvaTechnologiesWooCommerceWordpress
Silva Web Designs - Blog

WooCommerce – How to Remove Product Links on the Cart Page

Today we are going to show you how you can remove the product links from the Cart page in WooCommerce.

The great news is that you only need to add a single line of PHP code to your functions.php file. There are plugins that do this but it is totally unnecessary when it’s so simple to disable.

The code below will remove the links as illustrated in the image below:

So here it is, one line of code:


add_filter( 'woocommerce_cart_item_permalink', '__return_null' );

Easy right?

 

Nathan da Silva - Profile

Posted by: Nathan da Silva

Nathan is the Founder of Silva Web Designs. He is passionate about web development, website design and basically anything digital-related. His main expertise is with WordPress and various other CMS frameworks. If you need responsive design, SEO, speed optimisation or anything else in the world of digital, you can contact Silva Web Designs here; [email protected]

It’s good to share

Join the discussion

Related Posts

Related - How To Add Plus & Minus Buttons In WooCommerce To Cart or Product Archive

WooCommerce / 1st January 2024

How To Add Plus & Minus Buttons In WooCommerce To Cart or Product Archive

Read More