Title: Lessify WordPress
Author: Nirmal Kumar Ram
Published: <strong>2013 年 11 月 8 日</strong>
Last modified: 2025 年 12 月 13 日

---

搜索插件

![](https://ps.w.org/lessify-wp/assets/banner-772x250.jpg?rev=800956)

![](https://s.w.org/plugins/geopattern-icon/lessify-wp_1f7d7f.svg)

# Lessify WordPress

 作者：[Nirmal Kumar Ram](https://profiles.wordpress.org/sagarseth9/)

[下载](https://downloads.wordpress.org/plugin/lessify-wp.1.2.zip)

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

 [支持](https://wordpress.org/support/plugin/lessify-wp/)

## 描述

**LessCSS**

LESS extends CSS with dynamic behaviour such as variables, mixins, operations and
functions.Implements LessCSS in order to provide lots of interesting features for
the theme development.

**How to use ?**

Just enqueue the LESS files (with .less extension) as it is usually done for the
CSS ones, and the corresponding CSS files will automatically be generated and added
to the site.

**Important Notes**

1.This plugin is based on [lessphp](http://leafo.net/lessphp/) by Leaf Corcoran

2.This plugin generates the css file under “/wp-content/uploads/lessify-cache” and
therefore you need to define your images and any external links on you less file
using the themeurl variable available with this plugin and if you use relative url
then it will not work as we are saving the css file in a different location.

3.In order to use themeurl variable with the images you can do something like this

body{ background-image: url(@{themeurl}/images/bg.png); }
 the plugin also comes
with

another variable `lessurl` which provides the url where the less file is present.

## 安装

 * Download the plugin and extract it.
 * Upload the directory ‘/lessify-wp/’ to the ‘/wp-content/plugins/’ directory.
 * 通过WordPress的“插件”菜单激活插件。
 * That’s it you are done, you can now start creating your less files and enqueue
   to wordpress.

## 常见问题

### What is lessify wordpress?

Now you can write less directly with your wordpress theme and just enqueue them 
like the traditional wordpress way. This plugin would take care of the rest of the
work.

### How to add LESS file to your theme?

To enqueue your less file you can simply do like this
 wp_enqueue_style( ‘less-style’,
get_stylesheet_directory_uri() . ‘/style.less’ );

## 评价

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

### 󠀁[Does not work with a child theme](https://wordpress.org/support/topic/does-not-work-with-a-child-theme/)󠁿

 [robotlove](https://profiles.wordpress.org/robotlove/) 2016 年 9 月 3 日

The less style sheet is showing up before the child theme style sheet in the source,
and I’m not sure how to change this. I wish there was documentation about how to
set this up for child themes. Otherwise, it seems good.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/lessify-wp/reviews/)

## 贡献者及开发者

「Lessify WordPress」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Nirmal Kumar Ram ](https://profiles.wordpress.org/sagarseth9/)
 *   [ Magnigenie ](https://profiles.wordpress.org/magnigenie/)

[帮助将「Lessify WordPress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lessify-wp)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2

 * Updated: plugin updated as per the new wp version 6.8
 * Colde clean up

#### 1.1

 * Fixed: Instalation issue fixed for PHP verison 8.0
 * Code cleanup

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.2**
 *  最后更新：**6 月前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lessify-wp/)
 * 标签
 * [less](https://cn.wordpress.org/plugins/tags/less/)
 *  [高级视图](https://cn.wordpress.org/plugins/lessify-wp/advanced/)

## 评级

 4.6 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/lessify-wp/reviews/#new-post)

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

## 贡献者

 *   [ Nirmal Kumar Ram ](https://profiles.wordpress.org/sagarseth9/)
 *   [ Magnigenie ](https://profiles.wordpress.org/magnigenie/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/lessify-wp/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sagar.seth9@gmail.com&item_name=Lessify%20WordPress&return=http://wordpress.org/extend/plugins/lessify-wp/)