Skip to content

Clear Pop v1.4.0

Choose a tag to compare

@dbreck dbreck released this 15 Jan 20:57
· 11 commits to main since this release

New Features

  • Custom Modal Width - Added "Custom" option to Modal Width dropdown with value input and unit selector (px, vw, %)
  • Close Button Width - New field to set close button width (20-100px, height auto with 1:1 aspect ratio)
  • Slug-Based Trigger Class - New trigger class option using popup slug (e.g., hsp-popup-trigger-my-popup) in addition to ID-based class

Changes

  • Renamed "Modal Size" to "Modal Width" for clarity
  • Changed height option from "Fixed" to "Custom" for consistency
  • Backward compatible with existing popups using "fixed" height mode

Files Changed

  • includes/class-metabox.php - New fields and save logic
  • includes/class-modal-renderer.php - Custom width/height rendering
  • assets/js/modal.js - Slug-based trigger support
  • assets/css/modal.css - Custom width class