[Roots Theme homepage](http://www.rootstheme.com/) | [Documentation table of contents](README.md) # Clean up Clean up is handled by `lib/cleanup.php`. Major parts include: ### wp_head() clean up 1. Remove unnecessary ``'s 2. Remove inline CSS used by Recent Comments widget 3. Remove inline CSS used by posts with galleries 4. Remove self-closing tag and change `'`'s to `"`'s on `rel_canonical()` ### Add and remove body_class() classes 1. Add `top-navbar` class to `
` if using Bootstrap's navbar (enabled in `lib/config.php`). Used to add styling in `app.css` to account for the WordPress admin bar. 2. Add post/page slug class to `` 3. Remove `page-template-default` class ### Root relative URLs Root relative URLs are enabled from `lib/config.php`. Return URLs such as `/assets/css/app.css` instead of `http://example.com/assets/css/app.css`. ### Wrap embedded media as suggested by Readability The [Readability article publishing guidelines](http://www.readability.com/developers/guidelines#publisher) suggest wrapping embedded media with a class of `entry-content-asset`. ### Use HTML5 figure and figcaption for images with captions Any images that contain captions will be returned with `