No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Gravatar plugin for Craft CMS 3.x

Adds gravatar support.


This plugin requires Craft CMS 3.0.0-beta.23 or later.


To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
  2. Then tell Composer to load the plugin:

     composer require noxify/gravatar
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Gravatar.

Configuring Gravatar

The plugins allows you to configure the following settings directly from your CP:

  • Gravatar URL ( default: // )
  • Size ( default: 80 )
  • Rating ( default: mp )
  • Default Avatar ( default: mp )

Detailed instructions what are the allowed values are defined here:

Inside the plugin settings (and also in the config.php) you have also the detailed instructions and options.

Using Gravatar

Get the Gravatar URL with default settings

{{ craft.gravatar.url( '' ) }}

Get the Gravatar URL with custom settings

{{ craft.gravatar.url( '', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}

Get the Gravatar IMG with default settings

{{ craft.gravatar.img( '' ) }}

Get the Gravatar IMG with custom settings

{{ craft.gravatar.img( '', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}

Get the Gravatar IMG with custom settings and attributes

{{ craft.gravatar.img( '', {'s': 120}, {'class' : 'useravatar'} ) }}

Gravatar Roadmap

Brought to you by Marcus Reinhardt