這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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!

評價

2017年3月16日
Hi, good plugin, but need an option to setting how many lines or words or character I wanna cut. Thanks.
閱讀全部1個評價

貢獻者及開發者

“Text Snipper” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Text Snipper 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0 – 18/Dec/2016

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