
內容簡介
這是我同名的 Alligator Popup Plugin 的分支版本。與原始插件不同的是,此插件可讓您在彈出窗口中打開 WordPress 自訂選單的菜單項目目標,而不是在新視窗中打開。
在自訂選單中的菜單項目上添加「mpopup」類,即可在彈出窗口中打開目標。
使您能夠指定 WordPress 自訂選單上的菜單項目在新的彈出窗口中打開。此外,管理員頁面允許您控制彈出窗口的尺寸及其是否擁有捲軸。
使用方法:
您可以在「設定」=>「選單彈出」中找到選單彈出設定頁面。
設置彈出窗口的尺寸以及是否要啟用捲軸
接下來,在「外觀」=>「選單」中編輯您的自訂選單。
* 在菜單編輯器頁面的「螢幕選項」下拉面板中啟用「CSS 類別」選項。
在任何您希望目標頁面在彈出窗口中打開的菜單項目中添加「mpopup」類別。
當點擊菜單項目時,連結應在彈出窗口中打開。
外掛標籤
開發者團隊
原文外掛簡介
This is a fork of my similarly named Alligator Popup Plugin. Unlike the original plugin, this one enables you to open the target of a menu item of your WordPress custom menu in a popup window.
Add the ‘mpopup’ class to a menu item in a custom menu to open the target in a popup Window.
Enables you to specify that a menu item on your WordPress custom menu will open in a new popup window. An admin page allows you can control the size of the popup window and whether it has scrollbars.
Usage:
You will find the Menu Popup Settings Page at Settings => Menu Popup
Set the dimensions of the popup window and whether you want the popup window to be scrollable
Then edit your custom menu at Appearance => Menus
* Enable the CSS Classes option in the Screen Options pull-down panel on the menu editor page.
Add the mpopup class to any menu item where you want the target page to open in a popup window.
When the menu item is clicked, the link should now open in a popup window.
