Skip to content

westonruter/featured-image-block-with-lightbox

Repository files navigation

Featured Image Block with Lightbox

Contributors: westonruter
Tested up to: 7.0
Stable tag: 0.1.1
License: GPLv2 or later
Tags: block theme, featured image, site editor, lightbox

Description

This plugin automatically enables "Enlarge on click" (lightbox) for the Featured Image block when "Link to Post" is not enabled. There are no settings for this plugin.

This is a workaround to implement gutenberg#57849.

See writeup: Adding Caption & Lightbox to the Featured Image Block.

Installation

  1. Download the plugin ZIP from GitHub or if you have a local clone of the repo run npm run plugin-zip.
  2. Visit Plugins > Add New Plugin in the WordPress Admin.
  3. Click Upload Plugin.
  4. Select the featured-image-block-with-lightbox.zip file on your system from step 1 and click Install Now.
  5. Click the Activate Plugin button.

You may also install and update via Git Updater.

Changelog

0.1.1

  • Fix compatibility with Image block in WordPress 7.0. (#2)

0.1.0

  • Initial release.

About

WordPress plugin Automatically enables "Enlarge on click" (lightbox) for the Featured Image block when "Link to Post" is not enabled. This is a workaround to implement https://github.com/WordPress/gutenberg/issues/57849

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Contributors