How To Remove The WooCommerce Generator Tag

Development 1 min read

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

Scott Hartley

Founder & CEO, Sert Media

Founder and CEO of Sert Media, a Nashville-based digital marketing agency. Scott has spent over 15 years helping businesses grow through SEO, web performance optimization, and strategic digital marketing. His deep expertise in WordPress development, site speed, and technical SEO has guided hundreds of brands toward measurable results. When he's not auditing Core Web Vitals or refining campaign strategies, he's writing about the tools, techniques, and trends shaping the modern web.

Leave a Comment

Your email address will not be published. Required fields are marked with an asterisk.

Related Articles