Created
June 20, 2020 13:36
-
-
Save zakirsajib/18ee7d433688acb7c2098242b77e34be to your computer and use it in GitHub Desktop.
Hide related products text and entire row of releated products in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# There are two ways we can do this. | |
# Either using CSS or using remove action hook. | |
# Using CSS | |
.related.products { | |
display: none; | |
} | |
# Using remove action | |
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment