How to Hide the "Read More" Button in WooCommerce: Three Simple Methods

"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:

  1. Go to the WordPress DashboardClick Appearance > CustomizationThe
Image[1] - How to hide the "Read More" button in WooCommerce: three simple ways to optimize product pages
  1. In the Customization panel, click Additional CSSThe
Image [2] - How to Hide "Read More" Button in WooCommerce: Three Simple Ways to Optimize Product Pages
  1. Add the following code to the text box:
.woocommerce .products .button {
    display: none !important;
}
  1. 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.

  1. In the WordPress installation directory, locate the theme folder you are currently using.
  2. If your theme doesn't have woocommerce folder, which can be copied wp-content/plugins/woocommerce/templates hit the nail on the head content-product.php to your theme folder.
Image [3] - How to Hide "Read More" Button in WooCommerce: Three Simple Ways to Optimize Product Pages
  1. compiler content-product.php file, find the following code:
<code><?php woocommerce_template_loop_product_link_open(); ?><br></code>
  1. in the coderemovingmaybecomment outvs."Read More"Relevant part.
  2. 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.

  1. In the WordPress dashboard, click Plugins > Install PluginsThe
  2. Search and install Code Snippets Plug-ins.
Image [4] - How to Hide "Read More" Button in WooCommerce: Three Simple Ways to Optimize Product Pages
  1. After installing and enabling the plugin, navigate in the background to the Snippets > Add NewThe
Image [5] - How to Hide "Read More" Button in WooCommerce: Three Simple Ways to Optimize Product Pages
  1. 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 );
Image [6] - How to Hide "Read More" Button in WooCommerce: Three Simple Ways to Optimize Product Pages

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.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
Author: xiesong
THE END
If you like it, support it.
kudos15 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments