How To Remove The WooCommerce Generator Tag

WooCommerce is the most popular eCommerce solution for WordPress. It’s also one of the most popular eCommerce platforms on the web.

However, WooCommerce loads a meta generator tag in the header of your website’s code. Having this meta generator tag will not hurt your website’ search engine optimization (SEO) value. However, it’s impact is often debated, as it reveals what version of the software you are running. Therefore, I typically recommend removing such code.

Look for the following line in the view-source code on your homepage to find the meta-generator tag.

<meta name="generator" content="WooCommerce 3.8.0" />

Add The Following Code To Remove The WooCommerce Meta Generator Tag

If you’re looking to remove the code from your website, you’re going to need to add the following line of code to your functions.php (within your child theme) file or add it your site-specific plugin.

remove_action('wp_head', 'wc_generator'); 

The above code should remove any and all traces of the meta generator tag from the frontend of your website.

If you have any questions feel free to ask them below!

scott hartley

About the author

Scott is a web performance geek, lover of all things coffee, and avid video game player. His WordPress work delves into web performance, web security, and SEO.

Leave a Comment