Skip to content Skip to main navigation Skip to footer

Hide Style IDs from META Tags in WordPress 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 style IDs and other meta identifiers from your WordPress source code with WP Ghost. WordPress adds ID attributes to every enqueued stylesheet and script tag. These IDs contain plugin and theme names, making your stack identifiable even when paths are changed.

How to Hide IDs from META Tags

Go to WP Ghost > Tweaks > Hide Options. Switch on Hide IDs from META Tags. Click Save.

This removes the id=”” attribute from <link> and <script> tags in your HTML source. For example, id=”woocommerce-general-css” is removed, eliminating the WooCommerce fingerprint from the stylesheet tag.

What It Removes

Style IDs on <link> tags (e.g., elementor-frontend-css, woocommerce-layout-css), script IDs on <script> tags, and other meta identifiers that reveal plugin and theme names in the HTML head.

Frequently Asked Questions

Will removing IDs break my site’s styling?

No. Style IDs on link and script tags are not used for CSS styling. They are WordPress identifiers for the enqueue system. Removing them has no visual effect.

Does this also remove the generator META tag?

No. Generator META removal is a separate feature: Hide WordPress Version in the same Hide Options section. See the Remove Generator META tutorial.

Does WP Ghost modify WordPress core files?

No. IDs are stripped from the HTML output at runtime. Actual files untouched. Disabling restores all original IDs.