| 开发者 | pirajki |
|---|---|
| 更新时间 | 2026年8月8日 01:54 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pirajki_ipad_scroll], that renders a device mockup with a screenshot inside its screen. Hover over the frame and scroll the mouse wheel to scroll the screenshot inside the screen; move the pointer away and the page scrolls normally again. You can place as many frames as you like on the same page — each one scrolls independently.
It's a lightweight way to showcase a website, app, or product screenshot inside a device frame without a page builder add-on or external animation library.
Features
[pirajki_ipad_scroll], no blocks or builder required[pirajki_ipad_scroll screenshot="456"] works out of the box[pirajki_ipad_scroll screenshot="456"]
Using your own frame and Media Library attachment IDs:
[pirajki_ipad_scroll frame="123" screenshot="456"]
Or with direct image URLs:
[pirajki_ipad_scroll frame="https://example.com/ipad-frame.png" screenshot="https://example.com/homepage-shot.jpg"]
Shortcode Attributes
frame — (optional) Attachment ID or URL of the device frame image (should have a transparent screen area). Defaults to the iPad frame bundled with the plugin.screenshot — (required) Attachment ID or URL of the screenshot to scroll inside the screenframe_alt — alt text for the frame image (default: "Device frame")shot_alt — alt text for the screenshot image (default: "Homepage preview")pirajki-ipad-scroll folder to /wp-content/plugins/, or install directly through the WordPress Plugins screen[pirajki_ipad_scroll frame="..." screenshot="..."] shortcode to any page or post, using either Media Library attachment IDs or image URLsNo. Any device frame image with a transparent screen area works — phone, laptop, browser window, tablet, and so on. The name reflects the original use case, but the shortcode accepts any frame image.
Upload your own PNG with a transparent screen cut-out to the Media Library (or use a direct URL to one), then pass its attachment ID or URL as the frame attribute.
The screenshot attribute is required. If it's missing or can't be resolved to an image, logged-in editors will see an inline notice on the page explaining what's missing; the shortcode simply renders nothing for visitors.
No — the plugin ships with a default iPad frame, so [pirajki_ipad_scroll screenshot="456"] works on its own. Pass your own frame attribute (attachment ID or URL) if you'd rather use a different device or a custom frame image.
No. The plugin has no admin settings screen and stores nothing in the database — it only registers a shortcode and enqueues its CSS/JS on pages where that shortcode is used.
No. While the mouse is over the frame, scrolling moves the screenshot inside the screen instead of the page. Move the pointer off the frame and the page scrolls normally again.
Yes. Use the shortcode as many times as you like — each instance scrolls independently of the others.