WP Manifestindependent plugin directory
manifest / editor / pbrocks-sample-blocks

PBrocks Sample Blocks

Some blocks developed by pbrocks.

by pbrocks · github.com/pbrocks/pbrocks-sample-blocks · 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/pbrocks/pbrocks-sample-blocks/archive/refs/heads/initial.zip

Some blocks developed by pbrocks.

  • Tabs Block - originally done for Gutenberg Examples plugin
  • Image Carousel - proof of concept treatment of Swiper JS

.wp-env

If you have Docker installed, you could use wp-env package to load a WordPress development environment with this plugin automatically activated.

To setup this repo

Install wp-env globally

In a terminal window, run:

npm i -g @wordpress/env

Clone this repository

In a terminal window, run:

git clone git@github.com:pbrocks/pbrocks-sample-blocks.git

if you have your SSH keys set up. If not, run:

git clone https://github.com/pbrocks/pbrocks-sample-blocks.git

Change directory and run wp-env

In your terminal window, run:

cd pbrocks-sample-blocks
wp-env start

You should then see that a development site has been configured for you on localhost port 3466

Development Site Info

Log in to Site / Log into Site

Log in to Development Site

Tabs Block

Tabs Block Screencast

SwiperJS Block

SwiperJS Block Screencast