BACK TO DIRECTORY

Genesis JS / No JS

by Gary Jones

5.0
(2 ratings)

Make front end styling easier for child themes on the Genesis Framework based on whether JavaScript is enabled or not.

Adds a no-js body class to the front end, and a script on genesis_before which immediately changes the class to js if JavaScript is enabled.
This is how WP does things on the back end, to allow different styles for the same elements depending if JavaScript is active or not.

This plugin is only useful if you’re using a child theme of the Genesis Framework since it uses the genesis_before hook.

Plugin Details

Active Installs
100
Total Downloads
14,027
Version
3.2.1
Requires WP
4.6
Requires PHP
7.0
Tested Up To
4.9.31
Added
2011-05-24
Last Updated
2017-11-30 7:47pm GMT

Ratings

5
2
4
0
3
0
2
0
1
0