A simple WordPress block to display Gravatar images associated with email addresses.
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.
- 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)
- 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
- 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
- Node.js (v14 or higher)
- npm (v6 or higher)
- Composer (for PHP dependencies)
- Clone the repository
- Install dependencies:
npm install composer install
- Start development server:
npm run start
- Build for production:
npm run build
The project includes several tools to ensure code quality:
- Lint:
npm run lint:js - Format:
npm run format:js
- Lint:
npm run lint:scss - Format:
npm run format:scss
- Lint:
npm run lint:php - Fix:
composer lint:fix
- Lint all:
npm run lint - Format all:
npm run format
To create a new release:
npm run releaseThis will create a zip file in the release directory containing all necessary files for distribution.
This project is licensed under the GPL v2 or later.