This is a fork of my similarly named Alligator Popup Plugin.
这是我类似命名的Alligator Popup插件的一个分支。
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.
与原始插件不同,此插件使您可以在弹出窗口中打开WordPress自定义菜单的菜单项的目标。 p>
Add the ‘mpopup’ class to a menu item in a custom menu to open the target in a popup Window.
将“ mpopup”类添加到自定义菜单的菜单项中,以在弹出窗口中打开目标。 p>
Enables you to specify that a menu item on your WordPress custom menu will open in a new popup window.
使您可以指定WordPress自定义菜单上的菜单项将在新的弹出窗口中打开。
An admin page allows you can control the size of the popup window and whether it has scrollbars.
管理员页面可让您控制弹出窗口的大小以及是否具有滚动条。 p>
Usage:
用法: h4>
You will find the Menu Popup Settings Page at Settings => Menu Popup
您将在设置=>菜单弹出窗口中找到菜单弹出设置页面 p>
- Set the dimensions of the popup window and whether you want the popup window to be scrollable
- 设置弹出窗口的尺寸以及是否希望弹出窗口可滚动 li>
ul>
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.
*在菜单编辑器页面的“屏幕选项”下拉面板中启用CSS类选项。 p>
- Add the mpopup class to any menu item where you want the target page to open in a popup window.
- 将mpopup类添加到希望在弹出窗口中打开目标页面的任何菜单项。 li>
ul>
When the menu item is clicked, the link should now open in a popup window.
单击菜单项后,该链接现在应在弹出窗口中打开。 p>