[WordPress] 外掛分享: Collapse Magic

WordPress 外掛 Collapse Magic 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Collapse Magic」是 2024-06-03 上架。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2026-02-19,距離現在已有 6 天。
  • 外掛最低要求 WordPress 6.1 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.3 以上。
  • 有 6 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

clinton101 | creatorseo |

外掛標籤

Accordion | fade text | fade content | collapse text | read more text |

內容簡介

總結:Collapse Magic是一個能夠在頁面上方便顯示(可收合)展開更多文字的外掛程式,可以作為其他外掛程式(如collapse-o-matic)的替代選擇,且無需修改頁面內容即可直接替換使用。

問題與答案:
<ul>
<li>這個外掛程式具有哪些功能?</li>
<ul>
<li>易於實施</li>
<li>可配置擴展和收起標題</li>
<li>可配置上下箭頭</li>
<li>可調整收合狀態下可見文字的高度</li>
<li>可調整收合狀態下的淡出文字</li>
</ul>
<li>為什麼開發了Collapse Magic這個外掛程式?</li>
<ul>
<li>Collapse Magic為了在頁面上方便顯示(可收合)展開更多文字。</li>
<li>在發現collapse-o-matic存在跨站腳本漏洞時,開發了這個外掛程式。</li>
<li>它可以直接替代collapse-o-matic,無需對頁面進行任何更改即可使用。</li>
</ul>
<li>如何設置這個外掛程式?</li>
<ul>
<li>安裝外掛程式</li>
<li>從管理員設置選單中設置任何參數</li>
<li>在[magic_expand]...[/magic_expand]標籤或[expand]...[/expand]標籤之間放置文字,以使切換效果生效</li>
<li>如果需要,將替代的“展開更多”文字包含在短碼中,形式為[magic_expand title=&#8221;新展開更多文字&#8221;]</li>
<li>如果需要,將替代的“收合”文字包含在短碼中,形式為[magic_expand swaptitle=&#8221;新收合文字&#8221;]</li>
<li>單擊禁用按鈕以關閉短碼並顯示完整文字</li>
</ul>
<li>這個外掛程式的開發靈感是來自於誰?</li>
<ul>
<li>這個外掛程式受到Nelson Miller的方法的啟發:如何在Divi中展開和收合文字:jQuery代碼經過修改後用於這個外掛程式。</li>
</ul>
</ul>

原文外掛簡介

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」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.1.0 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.3.1 | 1.3.3 | 1.4.0 | 1.4.1 | 1.4.2 | 1.5.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Easy Accordion – Responsive Accordion FAQ Builder and Product FAQ 》Easy Accordion 是 WordPress 最好的回應式拖放式手風琴常見問題解答建立外掛,並具有許多自訂選項。它可幫助您在沒有寫任何程式碼的情況下快速在您的網站或...。
  • Collapse-O-Matic 》Collapse-O-Matic 外掛會新增一個 [expand] 短碼,將任何內容(包括其他短碼)包裹成一個可展開和折疊的手風琴元素。此外,還提供完整的短碼選項和屬性演示清...。
  • Accordion FAQ – Compatible With All Page Builder (Elementor, Gutenberg) 》感謝使用我們的外掛。如果需要一個很棒的手風琴常見問題解答(FAQ)外掛,那就是它了。Responsive Accordion 備有 WordPress 的優秀手風琴 FAQ 建構工具,您...。
  • Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
  • Accordions 》ided index, Accordion 外掛, Accordions 是一個簡單且功能強大的工具,可用於創建手風琴、常見問題解答、標籤、標籤內容、常見問題、知識庫、問答區段、WooC...。
  • Tabby Responsive Tabs 》, 增加一組水平標籤,在較窄的視窗時會變成手風琴, 使用 jQuery 建立標籤和手風琴, 支援同一頁面多組標籤, 使用語意化的標題和內容標記, Aria 屬性和角色有助...。
  • Lightweight Accordion 》這是一個輕量級的手風琴 WordPress 外掛,可以使用 Gutenberg 區塊或經典編輯器中的簡短代碼,在文章中添加可折疊元素。通過使用 details HTML 標籤和幾行 CS...。
  • Read More & Accordion 》Read More 是最好的 WordPress 閱讀更多外掛,協助您顯示或隱藏長篇內容。, 透過 Read More 外掛,您可以使內容較長的網站更美觀。在插入簡碼後,您不想立即...。
  • Bellows Accordion Menu 》Bellows 是一個讓 WordPress 網站擁有漂亮手風琴選單的外掛,它可以運用 WordPress 的選單系統讓你建立出美麗的手風琴選單。, Bellows Lite Demo, Bellows Fu...。
  • Advanced Accordion Gutenberg Block – Create Beautiful FAQs, Content Accordions & Interactive Tabs 》Advanced Accordion Gutenberg Block 是一個自定義的原生 Gutenberg 區塊,允許您在網站文章和頁面上使用 Gutenberg 編輯器輕鬆構建常見問題解答部分或手風琴...。
  • Accordion Shortcodes 》Accordion Shortcodes 是一個簡單的外掛,它添加了幾個簡短代碼,可在頁面中添加手風琴下拉菜單。手風琴將無縫融入主題中,但您可能希望編輯主題的樣式表以添...。
  • Accordion Blocks 》Accordion Blocks 是一個簡單的外掛程式,可為您的頁面新增如手風琴般的下拉式選單的 Gutenberg 區塊。, 手風琴選單可以與您的佈景主題無縫結合。不過,您可...。
  • Helpie FAQ — Accordion, Docs & Knowledge Base 》Helpie FAQ 是一個先進的 WordPress 常見問題解答外掛,可以輕鬆地在 WordPress 網站上創建、編輯和嵌入常見問題解答和手風琴。您可以輕鬆地創建驚人的手冊頁...。
  • Olevmedia Shortcodes 》Olevmedia Shortcodes 外掛在編輯器中新增了一個按鈕,提供了許多方便的短碼:, , 手風琴, 開關, 標籤頁(響應式), 引言, 方框, 按鈕(您可以選擇圖示、顏色...。
  • Magee Shortcodes 》Magee 短代码是一款提供一系列短代码的 WordPress 外掛。它基於 Bootstrap 平台編寫,使用 HTML5 和 CSS3 語言編寫,可以在桌面和移動設備上實現完全響應式。...。

文章
Filter
Apply Filters
Mastodon