Hide WordPress Version Numbers and Generator META with WP Ghost

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

Remove WordPress version numbers from your source code with WP Ghost. One option strips the ?ver= parameters from CSS and JS files, another removes the generator META tags (including the ones WPML, Slider Revolution and WPBakery add), and a third hides the DNS prefetch link to WordPress.org.

How to hide WordPress version

Go to WP Ghost > Tweaks > Hide Options. Switch on Hide Version from Images, CSS and JS. Click Save.

Switch on Hide WordPress Version

This removes the version parameters from all enqueued CSS and JS files (WordPress core, every plugin and your theme). In the same tab, Hide WordPress Generator META Tags removes the WordPress generator META tag and the generator tags plugins add (WPML, Slider Revolution, WPBakery), and Hide WordPress DNS Prefetch META Tags removes the DNS prefetch link to s.w.org.

Enable Random Static Number

When version parameters are removed, browsers may cache old CSS/JS files indefinitely. Enable Random Static Number in the same section to replace versions with a non-informative random number. This keeps cache-busting functional while hiding actual version information.

Frequently asked questions

Does this hide plugin and theme versions too?

Yes. WP Ghost strips the ?ver= parameter from all enqueued assets – every plugin stylesheet, every plugin script, and your theme’s CSS and JavaScript files.

Should I always enable Random Static Number?

Yes, unless you have a specific reason not to. Without it, browsers may cache old files indefinitely.

Does hiding versions affect SEO?

No. Search engines do not use version parameters or generator tags for ranking.

Does WP Ghost modify WordPress core files?

No. Version parameters are stripped from HTML output at runtime. Actual files untouched. Disabling restores all originals.

Related Articles