Skip to main content
6 events
when toggle format what by license comment
Dec 11, 2020 at 23:20 comment added Garconis Ah, mine is already doing a no-js or js class from the theme, so maybe if it already has a class, it can't add another?
Dec 11, 2020 at 19:03 comment added James0r I'm using ClassicPress 1.2, which forked at WP 4.9 but it's working for me. <html lang="en-US" class="no-focus-outline"> is what my head is looking like now.
Dec 11, 2020 at 14:30 comment added Garconis That worked to add a custom class? It doesn't do anything for me. If I set it to be a different attribute instead of class, then it works. For example, this works: function add_class_to_html_element( $output ) { $output .= ' attribute="value"'; return $output; } add_filter( 'language_attributes', 'add_class_to_html_element' ); ... but as soon as you change attribute to class, it doesn't show up. Looks like id will work though.
Dec 10, 2020 at 23:25 review Late answers
Dec 11, 2020 at 6:57
Dec 10, 2020 at 23:10 review First posts
Dec 11, 2020 at 8:04
Dec 10, 2020 at 23:06 history answered James0r CC BY-SA 4.0