Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wp-digital/wp-block-testimonial
Shares feedback, review etc. of other people.
https://github.com/wp-digital/wp-block-testimonial
block gutenberg-blocks testimonial wordpress-plugin
Last synced: about 1 month ago
JSON representation
Shares feedback, review etc. of other people.
- Host: GitHub
- URL: https://github.com/wp-digital/wp-block-testimonial
- Owner: wp-digital
- Created: 2021-11-01T12:16:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T11:47:58.000Z (over 1 year ago)
- Last Synced: 2024-11-12T20:48:45.701Z (about 2 months ago)
- Topics: block, gutenberg-blocks, testimonial, wordpress-plugin
- Language: JavaScript
- Homepage: https://demo.wpd.digital/testimonial-block/
- Size: 1.56 MB
- Stars: 1
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testimonial Block
### Description
Shares feedback, review etc. of other people.
### Demo
[Testimonial Block](https://demo.wpd.digital/testimonial-block/)
### Install
- Preferable way is to use [Composer](https://getcomposer.org/):
````
composer require wp-digital/wp-block-testimonial
````- Alternate way is to clone this repo to `wp-content/plugins/`:
````
cd wp-content/plugins/
git clone [email protected]:wp-digital/wp-block-testimonial.git
````Activate **Testimonial Block** with [WP-CLI](https://make.wordpress.org/cli/handbook/)
`wp plugin activate wp-block-testimonial` or from **Plugins** page.### Documentation
Add default image, if needed, with hook `wpd.block-testimonial.author_image.default`.
**Example**:````
wp.hooks.addFilter(
'wpd.block-testimonial.author_image.default',
'my-theme',
() => ( {
src: 'https://picsum.photos/150',
width: '150',
height: '150',
alt: 'Random image',
} )
);
````There are more hooks in [constants](./src/constants.js) which give a possibility to
customize behaviour a bit.