WordPress Cleanup Configuration

Remove unnecessary WordPress features and metadata to optimize your site.

Cleanup Configuration Options

The cleanup section in your config.yml file controls which WordPress features to disable:

1
cleanup:
2
emoji-styles: false # Disable WordPress emoji styles
3
comments-styles: false # Disable WordPress comment styles
4
post-rel-links: false # Disable post relation links
5
generator: false # Remove WordPress generator meta tag
6
rsd-link: false # Remove RSD link
7
wlwmanifest-link: false # Remove Windows Live Writer manifest
8
term-description-kses: false # Allow HTML in term descriptions
9
protected-text: false # Remove "Protected:" text from protected posts
10
rss-version: false # Remove RSS version

Set any option to false to disable/remove the feature. Set to true to keep it enabled.

Option Details

emoji-styles

Disables WordPress emoji styles and scripts. This can improve page load performance if you don't need emoji support.

comments-styles

Disables WordPress comment styles. Useful if you have custom comment styling or don't use comments.

post-rel-links

Disables post relation links in the HTML head. These links indicate the previous and next posts.

generator

Removes the WordPress generator meta tag from the HTML head. This tag reveals your WordPress version, which can be a security risk.

rsd-link

Removes the Really Simple Discovery (RSD) link from the HTML head. This link is used by blog clients and isn't necessary for most sites.

wlwmanifest-link

Removes the Windows Live Writer manifest link from the HTML head. This link is only needed if you use Windows Live Writer to edit your blog.

term-description-kses

Allows HTML in term descriptions. By default, WordPress strips HTML from term descriptions.

protected-text

Removes the "Protected:" text from protected post titles.

rss-version

Removes the RSS version from the feed.

Best Practices

  • Disable features you don't need to improve page load performance.
  • Always remove the WordPress generator meta tag for security.
  • If you don't use comments, disable comment styles.
  • If you don't use emoji, disable emoji styles and scripts.