| 开发者 | softiconai |
|---|---|
| 更新时间 | 2026年11月23日 20:30 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
npm install and npm run build. It is also on GitHub: github.com/softiconai/SoftIcon-Virtual-Tour.
Equirectangular 360° panoramas: the image is twice as wide as it is high (2:1), for example 6000 × 3000 pixels. Most 360° cameras (Insta360, Ricoh Theta, GoPro Max) and phone panorama apps save this format. The block warns you when an image is not 2:1.
6000 × 3000 pixels is sharp on most screens. Larger images look a little sharper up close but take longer to load. Save them as JPEG at about 80% quality; a 6000 × 3000 image is then usually 2–5 MB.
WordPress makes a smaller copy (2560 pixels wide) of every image larger than that. The block shows your original upload, so the tour stays sharp. Phones that cannot show the original get the smaller copy instead.
Some older phones can only show images up to 4096 or 8192 pixels wide. The block checks this and uses WordPress's smaller copy on those phones. If you uploaded the image somewhere other than the Media Library, there is no smaller copy: keep such images at 8000 pixels wide or less.
The 360° view is drawn with WebGL, which can only use images from another domain when that domain allows it (CORS). Ask your CDN or offload plugin to send the header Access-Control-Allow-Origin for images, or keep the panoramas in your own Media Library.
Yes. The block finds its own files even when an optimization plugin combines or moves the scripts. If the tour does not start after you turn on JavaScript combining or delaying, exclude softicon-virtual-tour from it and clear the cache.
The plugin is a block for the block editor. You can build the tour in a reusable block (synced pattern) and show that pattern where your page builder allows block content.
Yes. Turn on Load the tour on click in the block's Viewer settings. Until a visitor presses "View in 360°" (or picks a scene in the list), the page loads only the first scene's picture.
Yes. Press Tab to reach the panorama, use the arrow keys to look around and + or - to zoom. Hotspots and the scene names are buttons you can reach with Tab and press with Enter.