0
Under review
Can we make avatar initials circle a specific color (they show up with random colors by default)?
Trying to make the avatar initials option on the display template be a specific color of green, but there's no options for that in the interface, and looked at the front end output it has created them as .SVG files so there's no easy way to apply CSS and change them that way.
Any help is appreciated! TIA
Customer support service by UserEcho
There is a way to do it, but it will require a plugin update for me to add that feature. I can also tell you which file to edit if you would like to modify the plugin yourself. I'm probably about a week away from an update.
That's awesome! Ideally I'd wait for the update, but in the interest of time could you point me to that file and where the code generating the fill colors is? That would be huge and save some frustrating conversations with the client. Thanks Josh!!!
Sure. That feature uses a third-party service here...
https://avatar.oxro.io/
You should be able to add the background color to the image with the background parameter like so...
https://avatar.oxro.io/avatar.svg?name=Eddie&background=f39c12
For Template Style 1 look for the following file. (different depending on the template style)
\wp-review-slider-pro\public\partials\template_style_1.php
search the file for this...
https://avatar.oxro.io/avatar.svg?name=
There are two locations. And just add the background parameter to the URL.
This worked a treat - thanks Josh!!!! Looking forward to the updated version when you release that, and I've let the client know we'll adjust it again then.
Thanks again, great work, great plugin! :)