WP Manifestindependent plugin directory
manifest / editor / juliepr-media-defaults

Juliepr Media Defaults

Set useful defaults for Image and YouTube Embed blocks in the WordPress block editor

★ 1stars
5release downloads
juliepr-media-defaults@1.0.0latest · 1mo ago

Install

Download juliepr-media-defaults-1.0.0.zip From the juliepr-media-defaults@1.0.0 release on GitHub, Sep 15, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/sashmarin/juliepr-media-defaults/releases/download/juliepr-media-defaults%401.0.0/juliepr-media-defaults-1.0.0.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Minimal WordPress plugin for the Gutenberg core/image and YouTube Embed blocks.

For each Media Library image it uses the original file, centres the block, links to that media file, preserves the source proportions, and saves its width at 50% of the source width. The browser calculates the height from the original proportions. After the first adjustment, it adds the juliepr-adjusted-media class; blocks with this marker are not changed again, even when an author changes their settings manually.

Development

There is no build step or PHP dependency. Install this folder in a WordPress site's wp-content/plugins/ directory, activate the plugin, and test in the block editor.

Settings

Open Settings → Media Defaults in wp-admin. Each Image block default can be disabled independently. The settings page also provides an opt-in checkbox to delete the plugin's settings when the plugin is deleted.

YouTube Embed blocks receive centre alignment, the juliepr-media-youtube-landscape class, and the same juliepr-adjusted-media marker. Its CSS declarations are editable on the settings page. The same page provides a juliepr-media-youtube-portrait utility class for videos that need a portrait presentation; add that class manually when needed.

Localization

English is the source language. Russian is bundled as a native WordPress 6.5+ PHP translation catalog at languages/juliepr-media-defaults-ru_RU.l10n.php; no legacy .mo file is used.

Manual checks before a release:

  1. Insert a new Image block and choose a Media Library image with known dimensions, such as 2400 × 1600.
  2. Confirm the image URL and its link both use the original file, alignment is centre, the Aspect ratio control says Original, and the saved block has width="1200px".
  3. Reopen a post containing an existing Image block and confirm it receives the defaults and juliepr-adjusted-media; save the post.
  4. Change that marked block manually, reopen the post, and confirm the manual change remains intact.

Releases

1 release. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
Sep 15, 2026 1mo ago
juliepr-media-defaults-1.0.0.zip
5