Photoswipe Block
https://photoswipe.com/
by The WordPress Contributors · github.com/lweruo0/photoswipe-block · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lweruo0/photoswipe-block/archive/refs/heads/main.zipExample block scaffolded with Create Block tool.
Description
Installation
Frequently Asked Questions
Changelog
Arbitrary section
$ npx @wordpress/create-block --variant dynamic photoswipe-block
$ npm i @wordpress/icons
$ npm i photoswipe
$ npm i vidstack@next
$ cd photoswipe-block/src
$ rm -rf photoswipe-block
$ npx npx @wordpress/create-block --no-plugin --variant dynamic photoswipe-gallery
$ npx npx @wordpress/create-block --no-plugin --variant dynamic photoswipe-slide
$ npx npx @wordpress/create-block --no-plugin --variant dynamic video-card
$ cd ../build
$ rm -rf *
in photoswipe-block.php anpassen:
function create_block_photoswipe_block_block_init() {
register_block_type( __DIR__ . '/build/photoswipe-gallery' );
register_block_type( __DIR__ . '/build/photoswipe-slide' );
}
in src\photoswipe-gallery\block.json anpassen: icon, category, keywords, description