Skip to content

Instantly share code, notes, and snippets.

@zstepek
Last active May 7, 2024 14:42
Show Gist options
  • Save zstepek/597c2091abaac7811bb3 to your computer and use it in GitHub Desktop.
Save zstepek/597c2091abaac7811bb3 to your computer and use it in GitHub Desktop.
Remove product meta (SKU, tags, etc) from WooCommerce single product pages.
/* Remove product meta */
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
@NanetteG
Copy link

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!!!

@zstepek
Copy link
Author

zstepek commented Dec 18, 2023

@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