承接 humanmade/hm-popup-block 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

humanmade/hm-popup-block

Composer 安装命令:

composer require humanmade/hm-popup-block

包简介

An popup and tooltip dialog block utility, multiple trigger options, and supports anchor placements

README 文档

README

A lightweight, modern popup block for WordPress that displays any content as a modal dialog.

Features

Trigger Modes

  • Click trigger - Open popup from any link or button by setting the URL to #your-popup-id
  • Exit intent - Automatically show popup when user moves cursor to leave the page

Display Styles

  • Centered modal - Default full-screen overlay with centered content
  • Left sidebar - Slide-in panel from the left edge
  • Right sidebar - Slide-in panel from the right edge

Anchor Positioning

Position popups relative to their trigger button using CSS anchor positioning:

  • Bottom / Bottom Start / Bottom End
  • Top / Top Start / Top End
  • Left / Left Start / Left End
  • Right / Right Start / Right End

Anchored popups automatically reposition when they would overflow the viewport.

Styling Options

  • Customizable backdrop opacity (0-100%)
  • Backdrop background color support
  • Backdrop background image support
  • Full layout controls for popup content width

Accessibility

  • Built on native HTML <dialog> element
  • Keyboard accessible (Escape to close)
  • Click backdrop to close
  • Add close buttons with #close URL

Usage

  1. Add a Popup Block to your page
  2. Set an anchor/ID for the popup (e.g., my-popup)
  3. Add your content inside the popup
  4. Create a button or link with URL #my-popup to trigger it

Exit Intent Popup

  1. Add a Popup Block and set trigger to "On exit intent"
  2. Configure cookie expiration (days before showing again)
  3. The popup will appear when users move to leave the page

Anchored Popup

  1. Add a Popup Block with click trigger
  2. Enable "Use Anchoring" in block settings
  3. Select anchor position (bottom, top, left, right, etc.)
  4. The popup will appear attached to the trigger button

Requirements

  • WordPress 6.1+
  • PHP 7.0+

License

GPL-2.0-or-later

统计信息

  • 总下载量: 326
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 11
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-05-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固