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

Popup Block

外掛說明

This plugin adds a customizable Popup Block to the WordPress block editor.

螢幕擷圖

  • Block preview
  • Block Appearance Options
  • Block Open/Close Advanced Options

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Popup A popup/modal block for the WordPress block editor.

安裝方式

  1. Install the plugin via the plugin installer, either by searching for it or uploading a .ZIP file.
  2. Activate the plugin.
  3. Use the Popup Block for WordPress!

使用者評論

2022 年 11 月 1 日
I needed a simple popup plugin for emergency notifications and was looking for something that integrates nicely with the new block editor. I found a bunch that were clunky and / or bloated. This is perfect (well almost perfect). It has all the settings I need (sets an optional cookie with adjustable lifespan, it has intuitive appearance controls, and it's SO easy to create and modify popups on a per-page / post basis. The only reason I didn't give it 5 stars is that the min-width setting doesn't allow sufficient control to make this play nicely on mobile devices. Easy to fix with a bit of CSS - but adding width & max-width settings would IMO make this much better. Example, in child theme I added: .abs-popup .modal-content { width: 90% !important; max-width: 400px !important; } Thanks for sharing your plugin! pk
2021 年 2 月 26 日
Does exactly what I wanted it and what it says to do. Two things that maybe are useful for others: 1. I wanted to call a JS function on close. So I added my stopVideos call (if it is there) to the frontend.js file of the plugin: {key:"closeModal",value:function(){ if(typeof stopVideos=='function'){stopVideos();} If there is any better way, let me now (same for 2). 2. The pink logo svg in the editor was way too huge for me. I don't know the reason, but to dodge it I wrote the following rule into the corresponding editor CSS file of my theme: .popup-preview svg {display: none;}
2021 年 2 月 10 日
Lightweight block does exactly as advertised. Can activate by anchor link and a few other ways such as: page exit, timer, scroll location. Make sure to put it at the top of editor blocks, otherwise it does a few funky things when displaying.
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Popup Block〉的開發相關工作。

參與者

〈Popup Block〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Popup Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.0.4

  • Bump version to proper one

0.0.3

  • Allow opening using links href attribute

0.0.2

  • Fix exit intent not working in firefox
  • Fix close button hiding not working
  • Fix unique identifier for modal having wrong type, causing block to get invalidated
  • Overflow when content has large height
  • Open after scroll offset was not properly calculated

0.0.1

  • Initial release.