"Read More"The button is usually found in the WooCommerce product listing or product catalog page. It points to a single product page, which when clicked can beSee more details about this product. However, sometimes it is more beneficial to the user experience to provide complete product information directly on the current page, increasing efficiency when a simplified browsing process is required.
If you wish to hide "Read More" button, here are a few ways to implement it:
How to Hide "Read More" Button in WooCommerce
Method 1: Use CSS to hide buttons
The easiest way to do this is by addingCustom CSS to hide."Read More" button. Please follow the steps below:
- Go to the WordPress DashboardClick Appearance > CustomizationThe
![图片[1]-如何在 WooCommerce 中隐藏“阅读更多”按钮:三种简单方法优化产品页面](https://www.361sale.com/wp-content/uploads/2025/02/20250219190208662-image.png)
- In the Customization panel, click Additional CSSThe
![图片[2]-如何在 WooCommerce 中隐藏“阅读更多”按钮:三种简单方法优化产品页面](https://www.361sale.com/wp-content/uploads/2025/02/20250219190359805-image.png)
- Add the following code to the text box:
.woocommerce .products .button {
display: none !important;
}
- Save changes and publish.
This CSS code hides the "Read More" button, leaving other buttons (e.g. "Add to Cart") in place.
Method 2: Customize the product page with PHP code
If you wish to make a product pageMore controlIt's okay.Add PHP codeto customize the WooCommerce template files. Customize the template files by overriding the theme's content-product.php file, you can directly remove or modify the "Read More" button is displayed.
- In the WordPress installation directory, locate the theme folder you are currently using.
- If your theme doesn't have
woocommercefolder, which can be copiedwp-content/plugins/woocommerce/templateshit the nail on the headcontent-product.phpto your theme folder.
![图片[3]-如何在 WooCommerce 中隐藏“阅读更多”按钮:三种简单方法优化产品页面](https://www.361sale.com/wp-content/uploads/2025/02/20250219190707403-1739963212969.png)
- compiler
content-product.phpfile, find the following code:
<code><?php woocommerce_template_loop_product_link_open(); ?><br></code>
- in the coderemovingmaybecomment outvs."Read More"Relevant part.
- Save the file and upload it to your theme folder.
This gives you more flexibility to control what is displayed on the product page and remove unwanted elements.
Method 3: Use plug-ins to simplify setup
in the event thatUnfamiliar with the codeThe product pages can be customized using a dedicated WooCommerce plugin.plug-in (software component)as if Code Snippets You can simplify the setup without editing the code.Remove or modify"Read More" button is displayed.
- In the WordPress dashboard, click Plugins > Install PluginsThe
- Search and install Code Snippets Plug-ins.
![图片[4]-如何在 WooCommerce 中隐藏“阅读更多”按钮:三种简单方法优化产品页面](https://www.361sale.com/wp-content/uploads/2025/02/20250220110544667-image.png)
- After installing and enabling the plugin, navigate in the background to the Snippets > Add NewThe
![图片[5]-如何在 WooCommerce 中隐藏“阅读更多”按钮:三种简单方法优化产品页面](https://www.361sale.com/wp-content/uploads/2025/02/20250220110900151-image.png)
- Enter the code you need in the code edit box. For example, if you want to remove the "Read More" button, the following code can be used:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
![图片[6]-如何在 WooCommerce 中隐藏“阅读更多”按钮:三种简单方法优化产品页面](https://www.361sale.com/wp-content/uploads/2025/02/20250220110950819-image.png)
summarize
To hide the "Read More" button in WooCommerce, you can add theCustom CSS to hide the buttons.Using PHP codeCustomize the template file to remove the button, or use the Code Snippets plugins like this to simplify the setup, all of these methods can help you be more flexible in yourControlling product pagesThe content of the display.
Link to this article:https://www.361sale.com/en/32764/The article is copyrighted and must be reproduced with attribution.




















![表情[wozuimei]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![表情[baoquan]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments