Title: Easy Custom Code (LESS/CSS/JS) &#8211; Live Editing
Author: Yiannis Christodoulou
Published: <strong>2019 年 10 月 11 日</strong>
Last modified: 2026 年 5 月 25 日

---

搜索插件

![](https://ps.w.org/easy-custom-code/assets/banner-772x250.jpg?rev=3548309)

![](https://ps.w.org/easy-custom-code/assets/icon-256x256.png?rev=3548309)

# Easy Custom Code (LESS/CSS/JS) – Live Editing

 作者：[Yiannis Christodoulou](https://profiles.wordpress.org/yiannistaos/)

[下载](https://downloads.wordpress.org/plugin/easy-custom-code.1.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/easy-custom-code/#description)
 * [评价](https://cn.wordpress.org/plugins/easy-custom-code/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/easy-custom-code/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/easy-custom-code/#developers)

 [支持](https://wordpress.org/support/plugin/easy-custom-code/)

## 描述

The **[Easy Custom Code WordPress Plugin](https://www.web357.com/easy-custom-code-wordpress-plugin?utm_source=wp_ecc_repo&utm_medium=wp_listing_ecc&utm_campaign=wp_repo_link_ecc&utm_content=wp_repo_link_to_plugin_page_ecc)**
lets you easily customize your WordPress website by adding your own **LESS**, **
CSS**, and **JavaScript code** directly via the built-in WP Customizer. With this
plugin, there’s **no need for a child theme** or additional files. Simply insert
your custom code, and it will be compiled into a minified CSS file for styles and
a JavaScript file for scripts.

This lightweight plugin is designed for ease of use, providing a seamless and organized
way to manage custom styling and scripts without affecting core theme files.

### VIDEO (How it works?)

### FEATURES

 * Easily add custom LESS, CSS, and JavaScript to your site.
 * Manage unlimited external stylesheets and scripts via a modal window.
 * Control JavaScript placement (head or footer) for optimized performance.
 * Insert custom HTML in key areas:
    - Inside the `<head>` tag.
    - Immediately after the opening `<body>` tag.
    - Before the closing `</body>` tag.

### PRO FEATURES

 * **Minified CSS Output** – Option to enable automatic minification of compiled
   CSS.
 * **Full-Screen Editor** – Maximize the code editor for a distraction-free coding
   experience.

### What is LESS?

LESS is a CSS preprocessor that allows for variables, nested rules, mixins, and 
more, making your stylesheets more efficient and maintainable.

#### LESS code:

    ```
       @global_color: #FF0000;
       @global_font_size: 14px;
       @secondary_color: #CCC;

       body {
          color: @global_color;
          font-size: @global_font_size;
       }
       .container {
          color: @secondary_color;
          font-size: @global_font_size * 2;
       }
    ```

#### Outputs the following CSS:

    ```
       body {
          color: #FF0000;
          font-size: 14px;
       }
       .container {
          color: #CCC;
          font-size: 24px;
       }
    ```

For full LESS documentation, visit [lesscss.org](http://lesscss.org/).

### Demo

[Try Demo](https://demo.web357.com/wordpress/easy-custom-code/wp-admin/)
 `Username:
demo Password: demo

## 屏幕截图

 * [[
 * Add custom LESS/CSS styling directly from the WordPress Customizer.
 * [[
 * Insert custom JavaScript with ease.
 * [[
 * Manage external stylesheets.
 * [[
 * Add external scripts and choose their placement.
 * [[
 * Insert custom HTML snippets in key sections (head, body open, body close).
 * [[
 * Full-screen editor mode for an enhanced coding experience.
 * [[
 * View and edit minified CSS for optimal performance.
 * [[
 * Plugin settings panel for easy configuration.
 * [[

## 安装

This plugin is simple to install:

 1. Download the `easy-custom-code.zip` file.
 2. Extract the contents.
 3. Upload the `easy-custom-code` directory to `/wp-content/plugins/`.
 4. Navigate to the Plugins page in WordPress and activate the plugin.
 5. Configure your settings under `Settings > Easy Custom Code`.

## 常见问题

### Why should I use Easy Custom Code instead of editing my theme’s style.css?

Editing theme files — or even a child theme — means your changes can break or disappear
after a theme update. Easy Custom Code stores all your custom LESS, CSS, JavaScript,
and HTML safely in the database and outputs them as separate, optimized files, so
your customizations survive every theme or WordPress update.

### Do I need to know LESS to use this plugin?

No. You can paste plain CSS into the LESS/CSS field and it will work exactly the
same. LESS is optional and is only useful if you want extra features such as variables,
nesting, and mixins for cleaner stylesheets.

### Where will my custom JavaScript load — in the head or in the footer?

You choose. Use the JS placement option to load your script either inside the `<
head>` (for example for tracking pixels or verification tags) or right before the
closing `</body>` tag (recommended for most scripts, for better page performance).

### Can I add Google Analytics, Meta Pixel, Google Tag Manager, or chat widgets?

Yes. Use the “Custom HTML in “, “After opening “, or “Before closing ” sections 
to paste any tracking code, verification meta tag, or third-party widget — without
touching theme files.

### Does the plugin minify the compiled CSS?

Yes. The PRO version automatically minifies the compiled CSS for smaller file size
and faster page loads. The free version compiles your LESS/CSS into a single clean
stylesheet.

### Will my custom code load on every page of the site?

Yes. Styles and scripts added through the Customizer are loaded site-wide on the
frontend, keeping your branding consistent across all posts, pages, and custom post
types.

### Will my custom CSS and JS be deleted if I uninstall the plugin?

Yes. All custom LESS, CSS, JavaScript, and HTML added through this plugin will be
removed during uninstall, including the compiled CSS file. Make sure to back up 
your code first if you plan to reuse it later.

### Is Easy Custom Code compatible with caching and optimization plugins?

Yes. Because the compiled CSS and JS are written to physical files with unique names,
they work smoothly with popular caching plugins (e.g. WP Rocket, LiteSpeed Cache,
W3 Total Cache) and CDNs.

## 评价

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

### 󠀁[I use it to all my sites](https://wordpress.org/support/topic/i-use-it-to-all-my-sites/)󠁿

 [Kostas Theologos](https://profiles.wordpress.org/kostasth53025/) 2020 年 7 月 
21 日

Thanks, John!

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

### 󠀁[Perfect plugin](https://wordpress.org/support/topic/perfect-plugin-847/)󠁿

 [skapator](https://profiles.wordpress.org/skapator/) 2020 年 3 月 31 日

Easiest way to add code on your site. This functionality is a must for any one. 
Well done.

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

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-23301/)󠁿

 [thodorisit](https://profiles.wordpress.org/thodorisit/) 2019 年 10 月 11 日

A must-have plugin for adding external libraries and custom css or js code in the
website, awesome work!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/easy-custom-code/reviews/)

## 贡献者及开发者

「Easy Custom Code (LESS/CSS/JS) – Live Editing」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ Yiannis Christodoulou ](https://profiles.wordpress.org/yiannistaos/)
 *   [ web357 ](https://profiles.wordpress.org/web357/)

[帮助将「Easy Custom Code (LESS/CSS/JS) – Live Editing」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/easy-custom-code)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/easy-custom-code/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/easy-custom-code/)，或通过[RSS](https://plugins.trac.wordpress.org/log/easy-custom-code/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/easy-custom-code/)。

## 更新日志

#### 25-May-2026 : v1.1.3

 * Full compatibility with WordPress 7.x.
 * Minor fixes and improvements.

#### 31-Jan-2025 : v1.1.2

 * Full compatibility with WordPress 6.7.x.
 * Minor fixes and improvements.

#### 27-Nov-2024 : v1.1.1

 * **Bug Fix:** HTML entities (e.g., `&gt;`, `&lt;`) are now properly decoded.
 * Minor fixes and performance improvements.

#### 12-Aug-2024 : v1.1.0

 * **Bug Fix:** LESS syntax errors for `&:focus` and `&:hover` resolved.

#### 19-Jul-2024 : v1.0.9

 * Full compatibility with WordPress 6.6.x.
 * LESS CSS compiler updated to v0.8.0.
 * Minor fixes and improvements.

#### 18-Apr-2024 : v1.0.8

 * Full compatibility with WordPress 6.5.x.
 * Minor fixes and improvements.

#### 23-Oct-2023 : v1.0.7

 * Full compatibility with WordPress 6.3.x.
 * Minor fixes and improvements.

#### 07-Jun-2023 : v1.0.6

 * **Compatibility:** Fully compatible with WordPress 6.2.
 * Minor fixes and improvements.

#### 14-Jun-2022 : v1.0.5

 * **Compatibility:** Fully compatible with WordPress 6.0.
 * Minor fixes and improvements.

#### 11-Feb-2022 : v1.0.4

 * **Compatibility:** Fully compatible with WordPress 5.9.
 * Minor fixes and improvements.

#### 28-Jul-2021 : v1.0.3

 * **Compatibility:** Fully compatible with WordPress 5.8.
 * Minor fixes and improvements.

#### 09-Apr-2021 : v1.0.2

 * **Compatibility:** Fully compatible with WordPress 5.7.
 * Minor fixes and improvements.

#### 16-Oct-2019 : v1.0.1

 * **New Feature:** Add custom code in the head tag.
 * **New Feature:** Add custom code right after the body tag opens.
 * **New Feature:** Add custom code before the closing body tag.
 * **Improvement:** Unique CSS and JS file names for better cache handling.
 * **Improvement:** Removed the manual CSS file name option; now, files are generated
   dynamically.
 * **Improvement:** Enhanced language file (.pot) with additional strings.

#### 08-Oct-2019 : v1.0.0

 * Initial beta release.

## 额外信息

 *  版本 **1.1.3**
 *  最后更新：**14 小时前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.3 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/easy-custom-code/)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)[customizer](https://cn.wordpress.org/plugins/tags/customizer/)
   [javascript](https://cn.wordpress.org/plugins/tags/javascript/)[less](https://cn.wordpress.org/plugins/tags/less/)
   [web357](https://cn.wordpress.org/plugins/tags/web357/)
 *  [高级视图](https://cn.wordpress.org/plugins/easy-custom-code/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/easy-custom-code/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/easy-custom-code/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/easy-custom-code/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/easy-custom-code/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/easy-custom-code/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/easy-custom-code/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/easy-custom-code/reviews/)

## 贡献者

 *   [ Yiannis Christodoulou ](https://profiles.wordpress.org/yiannistaos/)
 *   [ web357 ](https://profiles.wordpress.org/web357/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/easy-custom-code/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/web357)