Last active
May 7, 2024 14:42
-
-
Save zstepek/597c2091abaac7811bb3 to your computer and use it in GitHub Desktop.
Remove product meta (SKU, tags, etc) from WooCommerce single product pages.
This file contains hidden or 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
/* Remove product meta */ | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); |
@NanetteG using a child theme, add a copy of /woocommerce/templates/single-product/meta.php
to your child theme at themes/your-theme/woocommerce/single-product/meta.php
, then edit the file to only show the data you’d like to display.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hopefully I can jump in on this thread! Currently, my product meta includes SKU, Tags, Category, GTIN, MPN, and Brand. I would like to remove Tags, GTIN, MPN, and Brand....leaving only the SKU and Category. Could you possibly assist with the correct CSS to accomplish this? Many thanks!!!