[WordPress] 外掛分享: Soronet Popup

首頁外掛目錄 › Soronet Popup
全新外掛
安裝啟用
尚無評分
3790 天前
最後更新
問題解決
WordPress 4.0+ v1.1.0 上架:2015-10-29

內容簡介

在頁面加載後顯示模式窗口中的內容。

使用方法:

從管理員菜單中選擇“SN Popup”,然後新增。輸入彈出窗口的名稱並插入任何內容。如果您完成了,請單擊“發布”。

現在找到您想在其中看到彈出窗口的頁面或文章並進行編輯。應該有一個名為“SN Popup”的新元框,選擇您想要的設置,然後點擊“更新”,然後查看您的頁面。

影片:https://www.youtube.com/watch?v=t6lt6v3fuEQ

要更改模態窗口的樣式,您可以在自己的主題 CSS 中覆蓋其樣式。或者,對於更高級的樣式設置,您可以取消佇列預設的 CSS,然後用自己的 CSS 替換它。

有關參考,未壓縮的預設 css 版本位於 /plugins/sn-popup/vendor/featherlight-1.3.4/src/featherlight.css

要取消佇列舊的 CSS 並佇列自己的 CSS,請在 functions.php 中添加類似以下的內容:

add_action('wp_enqueue_scripts','remove_featherlight_css'); function remove_featherlight_css(){ wp_dequeue_style('sn-featherlight'); wp_enqueue_style('featherlight-new-css','/path-to-new-css'); }

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Soronet Popup」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Show content in a modal after page load.
Usage:
Select ‘SN Popup’ from the admin menu, then Add New. Type a name for the popup and insert any content you like. If you’re done, click Publish.
Now find a page or post you’d like to see the popup on and edit it. There should be a new metabox called ‘SN Popup’, choose the settings you want and hit Update, then view your page.
Video: https://www.youtube.com/watch?v=t6lt6v3fuEQ
To change the styling of the modal, you can override its styles in your theme’s css. Or for more advanced styling you can dequeue the default css and replace it with your own.
For reference, the default unminified version of the css is located at /plugins/sn-popup/vendor/featherlight-1.3.4/src/featherlight.css
To dequeue the old css and enqueue your own, add something like this to your functions.php:
add_action('wp_enqueue_scripts','remove_featherlight_css'); function remove_featherlight_css(){ wp_dequeue_style('sn-featherlight'); wp_enqueue_style('featherlight-new-css','/path-to-new-css'); }

延伸相關外掛

文章
Filter
Apply Filters
Mastodon