plugin-icon

Really Simple Popup

作者:huntlyc·
Simple, easy to use, fancybox style popup
评级
4.6/5
版本
1.0.11
活跃安装
400
最后更新
Dec 3, 2014

Simple, easy to use, fancybox style popup.

Works for all images in your page that are in anchor tags. If it finds more than one, it will create a small gallery you can navigate through with the buttons or your keyboard. Advanced users can open iframes and html content in it fairly easily.

Avanced users

Basic use

Anchor class for popup: “hs-rsp-popup”

Advanced use

  • disable gallery feature and popup for image by adding this class: no-hsrsp-popup
  • anchor classes for iframe popup “hs-rsp-popup iframe”
  • anchor classes for html popup “hs-rsp-popup hiddendiv”

Examples

To popup an image give the anchor tag around the image this class: “hs-rsp-popup” Example: <a href="image.png" class="hs-rsp-popup"><img src="image.png" alt="image"/></a>

For an iframe, set the srct of the iframe and use the class “iframe” combined with “hs-rsp-popup”: Watch this

You can also use this to show html content. For local content just use the id of the element for the href: click here Hello, World!

For remote content, link to the page, for example: click here

Setting Popup Size (image/iframe)

You can use the following html5 data attributes in your link to set the size: data-popupheight="100" data-popupwidth="300" These values are in pixels.

For Example:

Note: for this to work, you have to use both the data-popupwidth and data-popupheight attributes.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 4.0.38
这个插件是可用的下载,适用于您的站点。