| 开发者 | obsiegerdigitalservices |
|---|---|
| 更新时间 | 2026年11月17日 21:13 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp-content/uploads/banners (via FTP or a file manager plugin). Images in the media library work too – their folders are inside wp-content/uploads.[random_image_studio], or add the widget.Any folder inside the uploads folder of your site, for example wp-content/uploads/banners (on multisite the uploads folder of the current site). Paths are relative to the WordPress installation directory. An administrator can approve additional public image folders, for example a theme image folder, under Settings → Obsieger Random Image Studio → Additional approved image folders. All other folders are blocked for security reasons, and symbolic links inside image folders are skipped.
In the block settings fill in Title, Text line, Button text and Button link. As soon as one of them is filled in, the overlay is shown. Choose an aspect ratio such as 2:3 so that all cards have the same height. Put several blocks into a Columns block to build a row of cards.
Make sure Cache-safe mode is enabled (it is by default). Then the image is chosen in the browser and changes on every visit, even when a caching plugin serves the same HTML to everyone.
[random_image_studio folder="wp-content/uploads/colmar" aspect_ratio="2/3" radius="12" shadow="1" title="Colmar" subtitle="The heart of Alsace" button_text="Discover" button_url="/colmar/" button_bg="#7b1526" card_clickable="1"]
All attributes: folder, width, height, aspect_ratio, fit, position, radius, border, shadow, hover_zoom, exclude_thumbnails, client_random, show_caption, alt, link, title, subtitle (or text), button_text, button_url, card_clickable, title_tag, title_size, text_size, content_position, text_align, text_color, overlay_color, overlay_opacity, button_bg, button_color.
Attributes you leave out use the default settings.
Yes. [random_image] and the older [randomimage path="..."] still work, as long as no other plugin uses the same shortcode name.
If the image is part of the media library and has an ALT text, that text is used. Otherwise the ALT text from the block, shortcode, widget or the default settings is used.
Yes. Settings are stored in the WordPress database and are not touched by updates.
[random_image_studio]. [random_image] and [randomimage] keep working.