跳到内容

Genesis JS / No JS

v3.2.1

Gary Jones · 2011年5月24日 上架

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

正在使用
100+
评分
5.0 / 5
累计下载
1.5 万
最近更新
2017年12月1日
2 条评价需要 WordPress 4.6+已测试到 4.9.36PHP 7.0+

贡献者

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums