Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.