The instructions for implementing Modernizr state that I should add class="no-js" to the <html> element.
Is there a way to do this in WordPress using a hook or filter? If at all possible, I'd prefer to do this without editing the theme files.
|
The instructions for implementing Modernizr state that I should add Is there a way to do this in WordPress using a hook or filter? If at all possible, I'd prefer to do this without editing the theme files. |
||||
|
This is not exactly the answer, but you can use a hook for
This works only when your theme follows the WordPress Theme Development Checklist. Sometimes people don't follow this and that breaks the technique. |
|||||||||||||
|
<html>element (see edited question). Also, I need to add it via PHP. "no-js" stands for "No Javascript", so using javascript to set that class is not an option. – Tex Jun 6 '11 at 8:08