Directory / plugin
KlyDexa Link Actions for ACF
v1.0.0 · by klydexa
Add actions to the ACF Link field: image gallery popup, video popup, shortcode popup, or a standard link. Lightweight and developer-friendly.
About this plugin
KlyDexa Link Actions for ACF extends Advanced Custom Fields with standard links, image gallery popups, video modals and shortcode-powered interactive content using a lightweight, accessible frontend implementation.
It adds one new field type, KlyDexa Link Actions. For each link, editors choose one of four actions:
- Standard link – an ordinary link to a page on your site, another site, an email address or a phone number, optionally opening in a new tab.
- Image gallery popup – images picked, removed and reordered in the WordPress Media Library, shown in an accessible popup with Previous and Next buttons, an image counter, keyboard and swipe navigation.
- Video popup – a video from the Media Library (MP4, WebM or Ogg) or a YouTube or Vimeo video, played in a popup and stopped when the popup closes.
- Shortcode popup – the output of a shortcode, for example a contact or newsletter form, in a popup. Only shortcodes an administrator has explicitly allowed can be used.
ACF’s own Link field is not changed in any way.
Lightweight and accessible
- Uses the browser’s native
<dialog>element. No jQuery, slider library or popup library on the front end. - One small script (under 5 KB gzipped) serves every Link Action on the page and is loaded only on pages that show a popup. Standard links load no JavaScript.
- Keyboard support: Enter or Space opens a popup, Escape closes it, arrow keys, Home and End move through a gallery. Focus returns to the link when the popup closes.
- Every popup has a labelled, always-visible close button. Animations are skipped for visitors who prefer reduced motion.
- Without JavaScript, a popup link jumps to the popup content shown inline on the page instead of doing nothing.
Privacy
The plugin makes no remote requests itself, uses no external services, and collects no data.
YouTube and Vimeo videos are embedded only when a visitor opens the popup. From that moment, the visitor’s browser connects to YouTube (through the privacy-enhanced youtube-nocookie.com domain) or Vimeo (with “do not track” requested), and those services may set cookies or collect data under their own privacy policies. Mention this in your site’s privacy policy if you use external videos.
Independent extension
KlyDexa Link Actions for ACF is developed by KlyDexa. It is not affiliated with, endorsed by or supported by the developers of Advanced Custom Fields. Advanced Custom Fields is not included and must be installed separately.