Skip to content

A custom card block for WordPress block editor. It can be used as a content container with custom controls for padding, margin, background color/gradient and, hence the name of the block - box shadow.

Notifications You must be signed in to change notification settings

thongtr-dev/card-block-with-box-shadow

Repository files navigation

=== Card Block with Box Shadow ===
Contributors:      thongtruong
Tags:              block, card
Requires at least: 5.9
Requires PHP:      7.4
Tested up to:      6.2
Stable tag:        2.0.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Add a custom card block to WordPress block editor with box shadow setting.

== Description ==

**NOTE: This block plugin is only compatible with hybrid and block themes.**

The card block can be used as a content container with custom controls for padding, margin, background color/gradient and, hence the name of the block - box shadow.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/card-block-with-box-shadow` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to WordPress block editor in page/post and type "/card" to choose the Card Block with Box Shadow block and begin editting.

== Frequently Asked Questions ==

= What type of blocks can be used inside the Card Block with Box Shadow block? =

Any block

== Screenshots ==

1. Type "/card" to choose the block
2. Add any block you wish inside the card block
3. The card shadow toggle is enabled by default
4. When the card shadow toggle is disabled, it will hide the card shadow control underneath
5. The result on frontend

/assets/screenshot-1.png
/assets/screenshot-2.png
/assets/screenshot-3.png
/assets/screenshot-4.png
/assets/screenshot-5.png

== Changelog ==

= 2.0.0 =
* Refactor codebase to TypeScript

= 1.0.0 =
* Initial release

About

A custom card block for WordPress block editor. It can be used as a content container with custom controls for padding, margin, background color/gradient and, hence the name of the block - box shadow.

Topics

Resources

Stars

Watchers

Forks