| Summary | Avatar Size and Shape will allow you to easily change the size and shape of the avatars on your site. | |
| Preview | Preview on Discourse Theme Creator | |
| Repository Link | https://github.com/discourse/discourse-avatar-component | |
| New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Features
Avatar Size and Shape allows you to easily customise the size and shape of avatars on your site in a variety of different locations.
Settings
| Name | Description |
|---|---|
| latest avatar size | Choose the avatar size on latest. Default value is small (25px). To see the changes applied, refresh the page with ctrl+F5 or cmd+shift+R. |
| topic avatars size | Choose the avatar size on topics. Default value is 45px. To see the changes applied, refresh the page with ctrl+F5 or cmd+shift+R. |
| header avatars size | Choose the avatar size on header. Default value is 32px. To see the changes applied, refresh the page with ctrl+F5 or cmd+shift+R. |
| header height | Choose the height of the header. The choice must be made based on the header_avatars_size + 10px. For example, if the header_avatars_size is set to 90px, the header should be 100px. Default value is 60px. |
| margin top | Choose the distance in px from the header. Default value is 0px. |
| avatars border radius | Choose the border-radius of the avatars on the site. The setting will be applied to all avatars, including the one on the header and the one on the user-card. 0% corresponds to a square shape, 50% to a rounded shape. Default value at 50% |
| mobile avatars size | Choose the avatar size on topics on Mobile. Min value is 45px (default), max value is 80px. To see the changes applied, refresh the page with ctrl+F5 or cmd+shift+R. |
Extra details:
-
latest avatar sizechanges the avatar size on the/latestpage. All the avatars will be visible up to themediumsize. Fromlargeonwards, only the avatar of the last user who wrote on the topic will be displayed. -
header avatar sizeworks well up to the 60px size. For avatars of a larger size, the height of the header must be increased (header height) and consequently, the margin-top that distances the header from the other elements of the page must also increase (margin top).
The position (in height) of the notification bubble (topics and PMs) has remained unchanged. These bubbles will only move horizontally following the avatar size.
Development History
This theme component was written taking inspiration from the guides
- How to increase avatars size on posts without making them blurred
- https://meta.discourse.org/t/how-to-increase-avatars-size-on-latest-without-making-them-blurred/89606
- How to increase Header avatar size?
Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.
Last edited by @JammyDodger 2024-06-11T08:14:10Z
Check document
Perform check on document:





