Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/humanmade/responsive-media-cover-block/archive/refs/heads/main.zipOn Packagist as humanmade/responsive-media-cover-block:
composer require humanmade/responsive-media-cover-blockNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
The Responsive Media Cover Block plugin extends the core cover block in WordPress to allow for a different image or video for mobile devices. This ensures that your cover media is optimized for both desktop and mobile views.
Features
- Add a different image or video for mobile devices.
- Seamlessly integrates with the WordPress block editor.
- Easy to use interface for selecting mobile-specific media.
- Falls back to the core cover block if the plugin is disabled.
Usage
- Edit or create a new post or page in the WordPress block editor.
- Add a Cover block to your content.
- In the block settings, you will see a new "Mobile Media" section.
- Click on "Select Mobile Media" to upload or choose an image or video specifically for mobile devices.
- Save your post or page.
Available Hooks
Filters
responsive_media_cover_block_breakpoint: Change the breakpoint at which the mobile media is displayed. Default36rem.responsive_media_cover_block_mobile_image_size: Change the size used for mobile image. Defaultlarge.
Releases
1 release.
Tag
Published
0.1.0
latest
Nov 12, 2024 1 year ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.