[WordPress] 外掛分享: Gallery Custom Links

WordPress 外掛 Gallery Custom Links 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Gallery Custom Links」是 2018-11-27 上架。
  • 目前有 40000 個安裝啟用數。
  • 上一次更新是 2025-01-14,距離現在已有 109 天。
  • 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 201 人給過評分。
  • 論壇上目前有 2 個提問,問題解答率 50%

外掛協作開發者

tigroumeow |

外掛標籤

links | custom | gallery | gutenberg |

內容簡介

Gallery Custom Links 可讓您將相片連結到指定的 URL。已經過 WordPress 相片集、Gutenberg、Meow Gallery 等等的測試。官方網頁在這裡:Gallery Custom Links。

使用方式

兩個欄位會被新增到您的媒體庫中的相片:連結網址和連結目標。若至少設置了連結網址,每當該相片在相片集中使用時,它都會連結到該網址。對於這些相片光箱模式將會自動關閉。

相容性

目前它可以與原生 WP Gallery、Gutenberg 相片集和 Meow Gallery 一起使用。實際上,它應該可以與任何使用“gallery”class 和 Responsive Images (src-set) 的相片集外掛一起使用。如果您希望支援更多相片集,請讓我知道,這應該很容易。

過濾器

您可以透過使用過濾器進行優化(僅在需要時執行外掛程式)和支援更多相片集(透過 CSS class)輕鬆地實現。欲知道更多相關資訊,請參閱官方網頁:Gallery Custom Links。

感謝

建立此外掛程式的動力來自於我的使用者,他們在嘗試使用 WP Gallery Custom Links 時遭遇了問題。我意識到這個外掛程式與標準相片集非常適配,但對於 Gutenberg 和其他相片集需要進行太多的重寫,因此創建了這個外掛程式。我希望它能為您帶來幫助。

語言:英語。

原文外掛簡介

Gallery Custom Links allows you to link images from galleries to a specified URL. Tested with WordPress Gallery, Gutenberg, the Meow Gallery and others. The official page is here: Gallery Custom Links.
Usage
Two fields are added to your images, in your Media Library: Link URL and Link Target (but also, Link Rel and Arial Label). If, at least, the Link URL is set up, this image will link to that URL every time it is used within a gallery. Lightbox will be automatically disabled for those images.
To do this, the Gallery Custom Links needs to analyze/rewrite your content. Depending on your WordPress, you can pick the most appropriate method (known as engine).

HtmlDomParser: Very reliable. It will rewrite your HTML so that the links are hardcoded.
DiDom: Same as HtmlDomParser but faster. However, your HTML needs to be perfectly valid.
Javascript: This is the fastest, but the links won’t be hardcoded. Only the visitor will experience the links.

Compatibility
It currently works with the native WP Gallery, the Gutenberg Gallery, and the Meow Gallery. It should actually work with any gallery plugin using the ‘gallery’ class and Responsive Images (src-set). Let me know if you would like more galleries to be supported, it should be easy.
Filters
You can optimize (run the plugin only on the pages where you need it) and support more galleries (through CSS classes) easily by using filters. To know more about this, visit the official page, here: Gallery Custom Links.
Thanks
The motivation to build this plugin came from my users who had issues trying to use WP Gallery Custom Links. I realized that this plugin was working extremely well with the standard gallery, but would require too much rewriting for Gutenberg and other galleries, hence the creation of this plugin. I hope it will help.
Languages: English.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Gallery Custom Links」來進行安裝。

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


0.0.1 | 0.0.2 | 1.0.0 | 1.0.2 | 1.0.4 | 1.0.6 | 1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.2.0 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.0.7 | 2.0.8 | 2.0.9 | 2.1.0 | 2.1.1 | 2.1.3 | 2.1.4 | 2.1.5 | 2.1.6 | 2.1.7 | 2.1.8 | 2.1.9 | 2.2.0 | 2.2.1 | 2.2.2 | 2.2.3 | trunk |

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

  • White Label CMS 》White Label CMS 外掛針對開發者設計,提供客戶更具個性化且易於使用的內容管理系統。, 詳細瞭解 2.0 版本外掛變更,請參閱 Video User Manuals 網站。, 功能...。
  • Simple Custom CSS Plugin 》無需麻煩地將自訂 CSS 新增到 WordPress 網站中。, 這是一個易於使用的 WordPress 外掛,可以添加自訂 CSS 樣式以覆寫外掛和佈景主題的預設樣式。該外掛旨在...。
  • ACF Photo Gallery Field 》t; 'Status', , 'name' => 'status', , 'choices' => array(, 'public' => 'Public', , 'private' => ...。
  • Smart Custom Fields 》Smart Custom Fields 是一個管理自訂欄位的簡單外掛。, 功能, , 支援自訂欄位群組迴圈。, 支援元資料修訂。, 支援元資料預覽。, , , 欄位類型, , 文字, 文字...。
  • Scripts n Styles 》這個外掛讓管理員用戶能夠將自訂的 CSS 和 JavaScript 直接添加到個別文章、頁面或任何註冊的自訂文章類型中,也可以將類別添加到 body 標籤和文章容器中。還...。
  • Ocean Custom Sidebar 》這個 WordPress 外掛可以生成無限數量的側邊欄,您可以把它們放置在想要的任何頁面上。前往主題面板 > 側邊欄以創建自定義側邊欄。, 此外掛需要安裝 Ocean...。
  • Custom Block Builder – Lazy Blocks 》WordPress 自訂區塊外掛程式, ★★★★★, 開發商使用於 WordPress 自訂區塊的魔法棒。我們創建了 Lazy Blocks WordPress 外掛程式,協助每位開發商取得他們需要的...。
  • Custom Body Class 》這個外掛程式可供您為頁面或文章添加獨特的 CSS 類別。, 範例, TasteWP 已經準備好一個快速的 WordPress 實例來展示此外掛程式,您可以在 此範例 中試用它。,...。
  • Woo Custom Stock Status 》此外掛可用於為每個 WooCommerce 產品或全域編寫自定義庫存狀態,並為每種狀態文字設置不同的顏色以便讓使用者在產品詳細頁面中確切知道庫存狀態名稱。, 您可...。
  • SMK Sidebar Generator 》這個外掛可以生成任意數量的側邊欄,然後讓你將它們放置在你想要的任何頁面。, , 特色:, , 無限數量的側邊欄。, 使用條件替換預設主題側邊欄,或全局替換只...。
  • PixTypes 》, , 使用 PixTypes,您可以允許您的主題在啟用時定義自定義文章類型或元框。 , 注意:此外掛針對開發人員,如果沒有正確配置,它將不會執行任何操作。。
  • Meks Time Ago 》Meks Time Ago WordPress 外掛讓您可以輕鬆將文章日期顯示改為「多久以前」的格式,例如「1小時前」、「2週前」、「5個月前」、「4天前」等,同時提供多種選...。
  • All Meta Tags 》這是一款易於使用、界面直觀的 WordPress 外掛程式,可以讓您輕鬆而安全地在 WordPress 管理區中直接添加自訂 Meta 標籤,而無需使用外部編輯器。, , 此工具...。
  • Post/Page specific custom CSS 》「Post/Page specific custom CSS」外掛能讓你為特定的文章或頁面新增 CSS 樣式表,並在編輯文章/頁面的欄位中提供一個區域來貼上你的 CSS 代碼。您也可以決...。
  • Simple Membership Custom Messages 》這個外掛可以讓你客製化會員外掛輸出的內容保護訊息。, 你可以為不同種類的保護訊息指定自訂的訊息內容。, 這個外掛需要安裝 Simple Membership Plugin。, 安...。

文章
Filter
Apply Filters
Mastodon