Changeset 31184 for trunk/src/wp-content/themes/twentyfifteen/functions.php
- Timestamp:
- 01/15/2015 11:09:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/functions.php
r31182 r31184 195 195 196 196 /** 197 * JavaScript Detection. 198 * 199 * Adds a `js` class to the root `<html>` element when JavaScript is detected. 200 * 201 * @since Twenty Fifteen 1.1 202 */ 203 function twentyfifteen_javascript_detection() { 204 echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n"; 205 } 206 add_action( 'wp_head', 'twentyfifteen_javascript_detection', 0 ); 207 208 /** 197 209 * Enqueue scripts and styles. 198 210 *
Note: See TracChangeset
for help on using the changeset viewer.