Title: Text Snipper
Author: jordanwebdev
Published: <strong>2016 年 12 月 11 日</strong>
Last modified: 2016 年 12 月 18 日

---

搜索插件

![](https://ps.w.org/text-snipper/assets/banner-772x250.jpg?rev=1557108)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/text-snipper/assets/icon-128x128.jpg?rev=1557108)

# Text Snipper

 作者：[jordanwebdev](https://profiles.wordpress.org/jordanwebdev/)

[下载](https://downloads.wordpress.org/plugin/text-snipper.1.0.zip)

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

 [支持](https://wordpress.org/support/plugin/text-snipper/)

## 描述

This plugin allows you to specify in the settings page a CSS class, and then looks
for any elements that contain it and trims the text down so that it does not overflow
its container’s height. This is for vertical trimming of multi-line text, and also
works if the element has direct children.

#### HOW TO USE

Once you install and activate the plugin, there will be a new tab for it under the“
settings” admin menu. Go to this page, and enter the name of the CSS class you are
using in your HTML to specifiy which elements should be truncated. Click save, and
that’s it!

### License

    ```
    Copyright 2016 Jordan Carter

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    ```

## 安装

 1. Download from plugins repository
 2. Activate plugin

## 常见问题

 * What if my HTML class has children?

Currently, the plugin handles direct children, as well as elements with no children.
Just provide the HTML class of the parent element, and the plugin will do the rest!

## 评价

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

### 󠀁[Good idea but… (cut)](https://wordpress.org/support/topic/good-idea-but-cut/)󠁿

 [janomix](https://profiles.wordpress.org/janomix/) 2017 年 3 月 16 日

Hi, good plugin, but need an option to setting how many lines or words or character
I wanna cut. Thanks.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/text-snipper/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ jordanwebdev ](https://profiles.wordpress.org/jordanwebdev/)

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

### 对开发感兴趣吗?

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

## 更新日志

1.0 – 18/Dec/2016

 * Fixed issues with handling direct children of the element with the specified 
   HTML class.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **50+**
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/text-snipper/)
 * 标签
 * [ellipsis](https://cn.wordpress.org/plugins/tags/ellipsis/)[snip](https://cn.wordpress.org/plugins/tags/snip/)
   [text](https://cn.wordpress.org/plugins/tags/text/)
 *  [高级视图](https://cn.wordpress.org/plugins/text-snipper/advanced/)

## 评级

 3 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ jordanwebdev ](https://profiles.wordpress.org/jordanwebdev/)

## 支持

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

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