前言介紹
- 這款 WordPress 外掛「Collapse Magic (CLAPS)」是 2024-06-03 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2025-03-25,距離現在已有 40 天。
- 外掛最低要求 WordPress 6.1 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.3 以上。
- 有 8 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
clinton101 | creatorseo |
外掛標籤
Accordion | fade text | fade content | collapse text | read more text |
內容簡介
總結:Collapse Magic是一個能夠在頁面上方便顯示(可收合)展開更多文字的外掛程式,可以作為其他外掛程式(如collapse-o-matic)的替代選擇,且無需修改頁面內容即可直接替換使用。
問題與答案:
- 這個外掛程式具有哪些功能?
- 易於實施
- 可配置擴展和收起標題
- 可配置上下箭頭
- 可調整收合狀態下可見文字的高度
- 可調整收合狀態下的淡出文字
- 為什麼開發了Collapse Magic這個外掛程式?
- Collapse Magic為了在頁面上方便顯示(可收合)展開更多文字。
- 在發現collapse-o-matic存在跨站腳本漏洞時,開發了這個外掛程式。
- 它可以直接替代collapse-o-matic,無需對頁面進行任何更改即可使用。
- 如何設置這個外掛程式?
- 安裝外掛程式
- 從管理員設置選單中設置任何參數
- 在[magic_expand]...[/magic_expand]標籤或[expand]...[/expand]標籤之間放置文字,以使切換效果生效
- 如果需要,將替代的“展開更多”文字包含在短碼中,形式為[magic_expand title=”新展開更多文字”]
- 如果需要,將替代的“收合”文字包含在短碼中,形式為[magic_expand swaptitle=”新收合文字”]
- 單擊禁用按鈕以關閉短碼並顯示完整文字
- 這個外掛程式的開發靈感是來自於誰?
- 這個外掛程式受到Nelson Miller的方法的啟發:如何在Divi中展開和收合文字:jQuery代碼經過修改後用於這個外掛程式。
原文外掛簡介
Collapse Magic provides an easy way to display (collapsible) read-more text on a page. This plugin is an alternative to other plugins like collapse-o-matic and can be used as a direct replacement without the need for any changes to page content.
Features
Easy to implement
Configurable expand and collapse labels
Configurable up and down arrows
Adjustable visible text height in the collapsed state
Adjustable fade-out text visible in the collapsed state
Unfortunately this plugin does not support Accelerated Mobile Pages (AMP)
Background
Collapse Magic provides an easy way to display (collapsible) read-more text on a page. Also, display a few lines of text and add read-more or expand text.
This plugin was developed when a cross-site scripting vulnerability was identified in collapse-o-matic. This plugin can be used as a direct replacement to collapse-o-matic. There is no need for any on-page changes to be made for the plugin to be used as a replacement.
Set-up
Install the plugin
Set any parameters from the admin Settings menu.
Place text between [magic_expand][/magic_expand] tags or between [expand][/expand] for the toggle to work.
Include alternate ‘read-more’ text if this is required in the shortcode as [magic_expand title=”NEW READ-MORE TEXT”].
Use alternate ‘read-less’ text if this is required in the shortcode as [magic_expand swaptitle=”NEW READ-LESS TEXT”].
Toggle button to set the default location of the expand / collapse label to above or below the section.
Single click disable button to switch off the shortcodes and show the full text.
Shortcode Parameters
Read-more / expand label – ‘title’. Example [magic_expand title=”–more–“].
Read-less / collapse label – ‘swaptitle’. Example [magic_expand title=”–more–” swaptitle=”–less–“].
Position of the expand label – ‘pos’. Example [magic_expand pos=”above”] or [magic_expand pos=”below”]
Credits
This plugin was inspired by the approach used by:
– Nelson Miller: How To Expand And Collapse Text In Divi: the jQuery code was modified for this plugin.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Collapse Magic (CLAPS)」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.1.0 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.3.1 | 1.3.3 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。