Don't you just hate it when your beautiful HTML markup is mangled by a templating language? (I'm looking at you, Timber)
Use this plugin to indent the HTML markup output by WordPress using the Dindent library. It only does its thing when you are not logged in.
- PHP 5.3 or greater
- Mbstring extension
Composer (with Bedrock)
composer require joppuyo/html-markup-indenter
- Upload the plugin folder to the /wp-content/plugins/ directory
- Activate the plugin through the Plugins menu in WordPress