Title: Alligator Popup
Author: cubecolour
Published: <strong>2013 年 10 月 7 日</strong>
Last modified: 2025 年 6 月 23 日

---

搜索插件

![](https://ps.w.org/alligator-popup/assets/banner-772x250.png?rev=1485172)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/alligator-popup/assets/icon-256x256.png?rev=1485172)

# Alligator Popup

 作者：[cubecolour](https://profiles.wordpress.org/numeeja/)

[下载](https://downloads.wordpress.org/plugin/alligator-popup.2.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/alligator-popup/#description)
 * [评价](https://cn.wordpress.org/plugins/alligator-popup/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/alligator-popup/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/alligator-popup/#developers)

 [支持](https://wordpress.org/support/plugin/alligator-popup/)

## 描述

This plugin allows you to enter a shortcode to add links to pages/posts which will
be opened in a popup window. The only options in Alligator popup are entered in 
the shortcode, so there is no admin page for this plugin.

#### 简码：

Add a popup shortcode where you would like a link to appear within your post or 
page text. The shortcode has parameters for url, height and width and should be 
in the format:

    ```
    [popup url="https://cubecolour.co.uk/wp" height="300" width="300" scrollbars="yes" alt="popup"]Link Text[/popup]
    ```

Include your own Link Text and values for the url the width & height of the popup,
and the alt text fot the link.

If no values are entered for the alt text and the height and width, defaults of 
400px are used for the width & height of the popup window.

Scrollbars are enabled by default and will show if the scrollbars parameter is not
added to the shortcode. If you do not want scrollbars on your popup window, add 
the scrollbars parameter with the value “no” to the shortcode: `scrollbars="no"`

If no value is entered for the alt text, an empty alt tag will be used in the link.

#### HTML Link:

Instead of using the shortcode you can include your link in the format:

    ```
    <a href="https://cubecolour.co.uk/wp" class="popup" data-height="300" data-width="300" data-scrollbars="0" alt="my link text">Link Text</a>
    ```

This might be useful in a text widget, or you can build the link in a template file
of your theme.

#### 备注：

If you are using any other plugin (or a theme) that uses a shortcode with the name‘
popup’, you will not be able to use this plugin. This is not because of any shortcoming
in this plugin, but because shortcodes such as those to create popup links should
always be implemented in a plugin not a theme.

On mobile devices such as iPads which don’t use browser windows, the link will open
in a new tab.

This plugin was written in response to a post by a WordPress.org forum user who 
promised to wrestle an alligator if his problem with creating popups was solved.

## 屏幕截图

[⌊A popup⌉⌊A popup⌉[

A popup

## 安装

 1. Upload the plugin folder to the ‘/wp-content/plugins/’ directory
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. Add a popup link to a page by including the shortcode to your content in the format:[
    popup url=”http://cubecolour.co.uk/wp” height=”300″ width=”300″ scrollbars=”0″]
    Link Text[/popup]

## 常见问题

### Where is the admin page?

It doesn’t have any options that need an admin page, so there isn’t one.

### What is the syntax of the shortcode?

[popup url=”http://cubecolour.co.uk/wp” height=”300″ width=”300″ scrollbars=”0″]
Link Text[/popup]
 The values for height and width must be positive integers and
the value for scrollbars must be either 1 (to show scrollbars) or 0 (to not show
scrollbars)

### Are the shortcode parameters all necessary?

The url is a mandatory parameter but height, widths and scrollbars are optional 
parameters, Default values will be used for any not present.

### What is the syntax of a link if I’m not using the shortcode?

[Link Text](http://cubecolour.co.uk/wp)

### Why doesn’t it work?

The plugin does work on the sites it has been tested on. If it is not working for
you, you may have done something wrong or maybe your theme is not built to WordPress
standards. Feel free to ask for help on the [Alligator Popup plugin support page on WordPress.org](https://wordpress.org/support/plugin/alligator-popup).

### What levels of support are available?

I offer free forum support for free cubecolour plugins where all communication takes
place on the WordPress.org forums and a link is provided to the page on your site
where I can see the issue without needing a password. Non-free support via email
is available if the conditions of obtaining free support on the public forum are
not compatible with the level of support required. This paid email support can be
requested at: [cubecolour.co.uk/premium-support](http://cubecolour.co.uk/premium-support)

### I am using the plugin and love it, how can I show my appreciation?

You can donate via [my donation page](http://cubecolour.co.uk/wp/). If you find 
the plugin useful I would also appreciate a glowing five star review on the [plugin review page](https://wordpress.org/support/view/plugin-reviews/alligator-popup)

### How do I wrestle an alligator?

This page has some handy tips:
 http://www.artofmanliness.com/2010/10/19/how-to-
wrestle-an-alligator/

## 评价

![](https://secure.gravatar.com/avatar/81027bd3e68103b3b5c75dddaac180b066a7b000fdcd06d1a86f806b16d2f7dd?
s=60&d=retro&r=g)

### 󠀁[Really Fiddly but Nothing to Touch It](https://wordpress.org/support/topic/really-fiddly-but-nothing-to-touch-it/)󠁿

 [deeveearr](https://profiles.wordpress.org/deeveearr/) 2022 年 5 月 5 日

I was quite surprised that my comments were still high on the first page of the 
support forum (usually meaning that the plugin is not downloaded very much), but
even though it's really fiddly to use and you need to work out a new workflow to
cover a blog with over 400 posts, this works better than anything else out there!
My original question was concerning Google Analytics type links, that open in a 
shrunken window. It's a lot easier when you work out the components, width and height,
then save them onto a notepad, and remember to 'paste as plain text', and copy the
link address from the original link, then delete it when the popup is compiled. 
Lots of these popup plugins can only be relied on to popup content from WordPress
websites, but this one pops-up content from government websites, Wikipedia, and 
I even tried a couple of Google Maps links last night, all of which opened in shrunken
popup windows. Right then, better crack on with the rest of my 400 posts!

![](https://secure.gravatar.com/avatar/56d1306bfa1adad4cfd75e08dab440167e621166f4f56ce8b344d6415ad155b0?
s=60&d=retro&r=g)

### 󠀁[Brilliant plugin!](https://wordpress.org/support/topic/brilliant-plugin-469/)󠁿

 [coderiverstudio](https://profiles.wordpress.org/coderiverstudio/) 2022 年 2 月
17 日

Just simply works. Thank you. And the sequel alligator menu popup was just what 
I needed to pop from a menu.

![](https://secure.gravatar.com/avatar/583679c956b3b0e378acb1b59e5dfaae4f82f87b80d52d9c05a5cde53a440c84?
s=60&d=retro&r=g)

### 󠀁[A keeper](https://wordpress.org/support/topic/a-keeper-3/)󠁿

 [markonrose](https://profiles.wordpress.org/markonrose/) 2021 年 2 月 15 日

Does what it's supposed to do, simply and reliably.

![](https://secure.gravatar.com/avatar/3ee56a0fef84a29dfb4da456b362ef9d1a353fb7fab1a7ad1521df1956ced892?
s=60&d=retro&r=g)

### 󠀁[How Plugins Should Be](https://wordpress.org/support/topic/how-plugins-should-be/)󠁿

 [starapple](https://profiles.wordpress.org/starapple/) 2018 年 9 月 13 日 1 回复

This is how plugins should be: Simple and just add an enhancement that seems natural.
Some plugins seem larger than core. Good job.

![](https://secure.gravatar.com/avatar/b20d507c8bc36c4e069e4ba2e0e7c105bc4ddf5a3f4a5dd3dce145ba3673af69?
s=60&d=retro&r=g)

### 󠀁[Simple, easy and it does work!](https://wordpress.org/support/topic/simple-easy-and-it-does-work/)󠁿

 [antoniomc76](https://profiles.wordpress.org/antoniomc76/) 2018 年 2 月 11 日

After trying some other plugins, this is the the easiest and most effective. Thanks!

![](https://secure.gravatar.com/avatar/e63b2aafc9e7f198f04d99d479fcff9a8e7dfe510e7c821bc0bf3ffd7cf8c8e7?
s=60&d=retro&r=g)

### 󠀁[Works perfectly, easy as heaven](https://wordpress.org/support/topic/works-perfectly-easy-as-heaven/)󠁿

 [8oris](https://profiles.wordpress.org/8oris/) 2017 年 12 月 18 日

Installation: 5 seconds Usage: easy, no tricky methods or whatever needed Interface:
well designed

 [ 阅读所有45条评价 ](https://wordpress.org/support/plugin/alligator-popup/reviews/)

## 贡献者及开发者

「Alligator Popup」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ cubecolour ](https://profiles.wordpress.org/numeeja/)

「Alligator Popup」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/alligator-popup/contributors)
为本插件所做的贡献。

[帮助将「Alligator Popup」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/alligator-popup)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/alligator-popup/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/alligator-popup/)，或通过[RSS](https://plugins.trac.wordpress.org/log/alligator-popup/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/alligator-popup/)。

## 更新日志

#### 2.0.0

 * Removed jQuery as dependency

#### 1.2.1

 * Removed function to get plugin version

#### 1.1.3

 * added alt parameter to shortcode for alt tag support in popup link
 * reduced the size of the plugin page icons

#### 1.1.2

 * added ‘resizable=yes’ to enable maximise button on popped up window in IE

#### 1.1.1

 * Undefined variable fixed in plugin page links

#### 1.1.0

 * Dynamic Version number added to script enqueue
 * Plugin Page Links
 * Added scrollbars option to shortcode

#### 1.0.1

 * Small improvements to documentation

#### 1.0.0

 * Initial Version

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **6.8.12**
 *  语言
 * [English (US)](https://wordpress.org/plugins/alligator-popup/) 和 [Swedish](https://sv.wordpress.org/plugins/alligator-popup/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/alligator-popup)
 * 标签
 * [jquery](https://cn.wordpress.org/plugins/tags/jquery/)[popup](https://cn.wordpress.org/plugins/tags/popup/)
   [popup window](https://cn.wordpress.org/plugins/tags/popup-window/)[popups](https://cn.wordpress.org/plugins/tags/popups/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/alligator-popup/advanced/)

## 评级

 4.9 星（最高 5 星）。

 *  [  42 条 5 星评价     ](https://wordpress.org/support/plugin/alligator-popup/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/alligator-popup/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/alligator-popup/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/alligator-popup/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/alligator-popup/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/alligator-popup/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/alligator-popup/reviews/)

## 贡献者

 *   [ cubecolour ](https://profiles.wordpress.org/numeeja/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/alligator-popup/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://cubecolour.co.uk/wp)