UniCard - A block plugin that can be used to create a card block with featured image, title, description fields.
Features optional featured image, title and description fields. Text color as well as background color can be changed through the block's Color Settings. With option to change card layout, defaults to column
.
- Upload the entire
/unicard
directory to the/wp-content/plugins/
directory. - Activate UniCard through the 'Plugins' menu in WordPress.
- Add a UniCard block by selecting the
UniCard
block fromCommon Blocks
- Choose or upload a featured image, add a title and description.
- You can choose to change the text color and/or background color from the block settings.
- The block can be set to full-width or wide-width when needed.
- Text alignment can also be changed, alignment will be the same for both title and description.
- Card layout can be set to
column
,column-reverse
,row
,row-reverse
.
- Clone the repo https://github.com/khleomix/unicard
develop
branch to the/wp-contents/plugins/
directory rungit clone -b develop git@github.com:khleomix/unicard.git
- Navigate to the plugin directory, run
cd unicard
- Install NPM:
npm install
- Run
npm start
ornpm run build
to compile.
Featured image, title, and description fields are all optional and you can use one or a combination of two or all fields according to your needs.
The block can be set as full-width or wide-width together with the option to change text alignment through the Block Toolbar.
UniCard settings on the sidebar allows you to set the following:
- Color settings allow text color and background color change.
- Display settings control card layout, defaults to
column
can be set to the following:column
,column-reverse
,row
,row-reverse
- Added conditional to only show field containers if not empty.
- Added Display Option to change card layout.
- Update README
- First release