Title: Genesis JS / No JS
Author: Gary Jones
Published: <strong>మే 24, 2011</strong>
Last modified: నవంబర్ 30, 2017

---

Search plugins

![](https://ps.w.org/genesis-js-no-js/assets/banner-772x250.jpg?rev=1778153)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/genesis-js-no-js/assets/icon-256x256.png?rev=1778153)

# Genesis JS / No JS

 By [Gary Jones](https://profiles.wordpress.org/garyj/)

[Download](https://downloads.wordpress.org/plugin/genesis-js-no-js.3.2.1.zip)

 * [Details](https://te.wordpress.org/plugins/genesis-js-no-js/#description)
 * [Reviews](https://te.wordpress.org/plugins/genesis-js-no-js/#reviews)
 *  [Installation](https://te.wordpress.org/plugins/genesis-js-no-js/#installation)
 * [Development](https://te.wordpress.org/plugins/genesis-js-no-js/#developers)

 [Support](https://wordpress.org/support/plugin/genesis-js-no-js/)

## Description

Make front end styling easier for child themes on the [Genesis Framework](http://genesis-theme-framework.com/)
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.

## Installation

Once this plugin is installed and activated, then it will work automatically. There
are no options, and nothing to set-up.

#### Upload

 1. Download the latest tagged archive (choose the “zip” option).
 2. Go to the **Plugins -> Add New** screen and click the **Upload** tab.
 3. Upload the zipped archive directly.
 4. Go to the Plugins screen and click **Activate**.

#### Manual

 1. Download the latest tagged archive (choose the “zip” option).
 2. Unzip the archive.
 3. Copy the folder to your `/wp-content/plugins/` directory.
 4. Go to the Plugins screen and click **Activate**.

Check out the Codex for more information about [installing plugins manually](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

#### Git

Using git, browse to your `/wp-content/plugins/` directory and clone this repository:

    ```
    git clone git@github.com:GaryJones/genesis-js-no-js.git
    ```

Then go to your Plugins screen and click **Activate**.

#### Composer

    ```
    composer require gamajo/genesis-js-no-js
    ```

## FAQ

  Installation Instructions

Once this plugin is installed and activated, then it will work automatically. There
are no options, and nothing to set-up.

#### Upload

 1. Download the latest tagged archive (choose the “zip” option).
 2. Go to the **Plugins -> Add New** screen and click the **Upload** tab.
 3. Upload the zipped archive directly.
 4. Go to the Plugins screen and click **Activate**.

#### Manual

 1. Download the latest tagged archive (choose the “zip” option).
 2. Unzip the archive.
 3. Copy the folder to your `/wp-content/plugins/` directory.
 4. Go to the Plugins screen and click **Activate**.

Check out the Codex for more information about [installing plugins manually](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

#### Git

Using git, browse to your `/wp-content/plugins/` directory and clone this repository:

    ```
    git clone git@github.com:GaryJones/genesis-js-no-js.git
    ```

Then go to your Plugins screen and click **Activate**.

#### Composer

    ```
    composer require gamajo/genesis-js-no-js
    ```

  What does this plugin actually do?

If you look at the source of a WordPress back end page, you’ll see it has a body
class of `no-js`. Immediately after the opening `body` tag is a small script which
replaces `no-js` with `js` (you can see the amended class with browser developer
tools).

WordPress uses this to apply different styles to the same elements, depending on
whether JavaScript is present or not.

This plugin recreates the same effect, but for the front end of [Genesis Framework](http://genesis-theme-framework.com/)
child themes.

  Shouldn’t the script be at the end of the page?

Usually, yes, but it’s a fairly small script, so does not block rendering of other
content for any noticeable length of time.

Doing it immediately also reduces a flash of incorrectly styled content, as the 
page does not load with `no-js` styles, then switch to `js` once everything has 
finished loading.

## Reviews

![](https://secure.gravatar.com/avatar/b31331326848163f891c5aed0f9286851f1f4a7e061dee35ba549813f1da00d3?
s=60&d=retro&r=g)

### 󠀁[Just what I needed](https://wordpress.org/support/topic/just-what-i-needed-594/)󠁿

 [blueprintmarketing](https://profiles.wordpress.org/blueprintmarketing/) మార్చి
14, 2017 1 reply

Thank you for this !

![](https://secure.gravatar.com/avatar/222fccfe9ff26b2f987ea1748b2c6e2fd12aedd9c8501fb44665c3770cab70fb?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-1100/)󠁿

 [schlagobers](https://profiles.wordpress.org/schlagobers/) జనవరి 31, 2017 1 reply

Very useful little script for JavaScript feature detection.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/)

## Contributors & Developers

“Genesis JS / No JS” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Gary Jones ](https://profiles.wordpress.org/garyj/)

“Genesis JS / No JS” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/genesis-js-no-js/contributors)
for their contributions.

[Translate “Genesis JS / No JS” into your language.](https://translate.wordpress.org/projects/wp-plugins/genesis-js-no-js)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/genesis-js-no-js/),
check out the [SVN repository](https://plugins.svn.wordpress.org/genesis-js-no-js/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/genesis-js-no-js/)
by [RSS](https://plugins.trac.wordpress.org/log/genesis-js-no-js/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

See [CHANGELOG.md](https://github.com/GaryJones/genesis-js-no-js/blob/master/CHANGELOG.md)
for all of the changes.

## Meta

 *  Version **3.2.1**
 *  Last updated **8 సంవత్సరాలు ago**
 *  Active installations **100+**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **4.9.29**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [English (UK)](https://en-gb.wordpress.org/plugins/genesis-js-no-js/), [English (US)](https://wordpress.org/plugins/genesis-js-no-js/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/genesis-js-no-js/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/genesis-js-no-js)
 * Tag
 * [genesis](https://te.wordpress.org/plugins/tags/genesis/)
 *  [Advanced View](https://te.wordpress.org/plugins/genesis-js-no-js/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/genesis-js-no-js/reviews/)

## Contributors

 *   [ Gary Jones ](https://profiles.wordpress.org/garyj/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/genesis-js-no-js/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://code.garyjones.co.uk/donate/)