Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/thomasguillot/simple-gravatar/releases/download/1.0.1/simple-gravatar-1.0.1.zipA simple WordPress block to display Gravatar images associated with email addresses.
Description
Simple Gravatar is a lightweight WordPress block that allows you to easily display Gravatar images in your posts and pages. Simply enter an email address, and the block will display the associated Gravatar image. If no Gravatar is found for the email address, a default avatar will be shown.
Features
- Simple and intuitive interface
- Customizable image size
- Retina display support
- Fallback to default avatar
- Border customization support
- Duotone filter support
- Multilingual support (English, French, Italian, Spanish, German, Japanese)
Installation
- Upload the
simple-gravatarfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Use the block editor to add a Simple Gravatar block to your post or page
Usage
- Add a new block to your post or page
- Search for "Simple Gravatar" in the block inserter
- Enter an email address in the block settings
- Adjust the size using the block settings sidebar
- Customize borders and duotone filters if desired
- Save or update your post
Development
Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
- Composer (for PHP dependencies)
Setup
- Clone the repository
- Install dependencies:
npm install composer install - Start development server:
npm run start - Build for production:
npm run build
Code Quality
The project includes several tools to ensure code quality:
JavaScript/React
- Lint:
npm run lint:js - Format:
npm run format:js
SCSS
- Lint:
npm run lint:scss - Format:
npm run format:scss
PHP
- Lint:
npm run lint:php - Fix:
composer lint:fix
Run All Checks
- Lint all:
npm run lint - Format all:
npm run format
Creating a Release
To create a new release:
npm run release
This will create a zip file in the release directory containing all necessary files for distribution.
License
This project is licensed under the GPL v2 or later.
Releases
2 releases. Each count is every asset in that release; expand a row for the breakdown.