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:
1cleanup:2emoji-styles: false # Disable WordPress emoji styles3comments-styles: false # Disable WordPress comment styles4post-rel-links: false # Disable post relation links5generator: false # Remove WordPress generator meta tag6rsd-link: false # Remove RSD link7wlwmanifest-link: false # Remove Windows Live Writer manifest8term-description-kses: false # Allow HTML in term descriptions9protected-text: false # Remove "Protected:" text from protected posts10rss-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.