Roots Theme homepage | Documentation table of contents
Clean up is handled by lib/cleanup.php. Major parts include:
- Remove unnecessary
<link>'s - Remove inline CSS used by Recent Comments widget
- Remove inline CSS used by posts with galleries
- Remove self-closing tag and change
''s to"'s onrel_canonical()
- Add
top-navbarclass to<body>if using Bootstrap's navbar (enabled inlib/config.php). Used to add styling inapp.cssto account for the WordPress admin bar. - Add post/page slug class to
<body> - Remove
page-template-defaultclass
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.
The Readability article publishing guidelines suggest wrapping embedded media with a class of entry-content-asset.
Any images that contain captions will be returned with <figure> and <figcaption> elements. They also get a caption class for additional styling from Bootstrap.
The [gallery] shortcode has been re-created to use Bootstrap thumbnail styling.
- Remove Incoming Links
- Remove Plugins
- Remove WordPress Blog
- Remove Other WordPress News
The excerpt length is defined in lib/config.php. Excerpts are ended with anchor to the post and with "… Continued" instead of "[…]".
Walker_Nav_Menu (WordPress default) example output:
<li id="menu-item-8" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8"><a href="/">Home</a></li>
<li id="menu-item-9" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="/sample-page/">Sample Page</a></l
Roots_Nav_Walker example output:
<li class="menu-home"><a href="/">Home</a></li>
<li class="menu-sample-page"><a href="/sample-page/">Sample Page</a></li>
If using the Bootstrap top navbar (enabled in lib/config.php), the proper markup is added to the items and the depth is restricted to 2 (Bootstrap doesn't support multi-level dropdowns).
Instead of the many different active class varities that WordPress usually uses, only active is returned on active items.
Self-closing tags aren't necessary with HTML5. They're removed on:
get_avatar()(<img />)comment_id_fields()(<input />)post_thumbnail_html()(<img />)
If your site tagline is still Just another WordPress site then the description isn't returned in the feed.
Allow <iframe> and <script> to be used without issues.
Add widget-first, widget-last, and widget-X (X is the position) classes to widgets.
Redirect /?s=query to /search/query/, convert %20 to +.